void-packages/srcpkgs/grub-btrfs/patches/no-root-please.patch

16 lines
576 B
Diff
Raw Normal View History

2021-04-14 14:26:58 +02:00
Index: grub-btrfs-4.9/Makefile
===================================================================
--- grub-btrfs-4.9.orig/Makefile
+++ grub-btrfs-4.9/Makefile
@@ -9,10 +9,6 @@ LIB_DIR = $(DESTDIR)$(PREFIX)/lib
.PHONY: install uninstall help
install:
- @if test "$(shell id -u)" != 0; then \
- echo "You are not root, run this target as root please."; \
- exit 1; \
- fi
@install -Dm755 -t "$(DESTDIR)/etc/grub.d/" 41_snapshots-btrfs
@install -Dm644 -t "$(DESTDIR)/etc/default/grub-btrfs/" config
@install -Dm644 -t "$(LIB_DIR)/systemd/system/" grub-btrfs.service