From d433f37ff4c5b8c63e24990cd4d05d8935c2a9f9 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 18 Sep 2024 17:40:57 +0800 Subject: updates --- usr/share/libalpm/hooks/zz-snap-pac-postz-grub.hook | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 usr/share/libalpm/hooks/zz-snap-pac-postz-grub.hook (limited to 'usr') diff --git a/usr/share/libalpm/hooks/zz-snap-pac-postz-grub.hook b/usr/share/libalpm/hooks/zz-snap-pac-postz-grub.hook new file mode 100644 index 00000000..8eb00da4 --- /dev/null +++ b/usr/share/libalpm/hooks/zz-snap-pac-postz-grub.hook @@ -0,0 +1,12 @@ +[Trigger] +Operation = Upgrade +Operation = Install +Operation = Remove +Type = Package +Target = * + +[Action] +Description = Generating GRUB config to let grub-btrfs detect new snapshots... +Depends = grub +When = PostTransaction +Exec = /bin/bash -c "/usr/share/libalpm/scripts/grub-mkconfig 2>&1 | /home/system/scripts/oneline" -- cgit v1.2.3