summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-09-18 17:40:57 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-09-18 17:40:57 +0800
commitd433f37ff4c5b8c63e24990cd4d05d8935c2a9f9 (patch)
treecebb0ada7bbeed97f0dfe280c99eab59aa08af5f /usr
parentbab0db51513b419a00fceeddd3f457ec2b2224f7 (diff)
updates
Diffstat (limited to 'usr')
-rw-r--r--usr/share/libalpm/hooks/zz-snap-pac-postz-grub.hook12
1 files changed, 12 insertions, 0 deletions
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"