summaryrefslogtreecommitdiff
path: root/libre/grub-crypt-git/grub.install
diff options
context:
space:
mode:
Diffstat (limited to 'libre/grub-crypt-git/grub.install')
-rw-r--r--libre/grub-crypt-git/grub.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/libre/grub-crypt-git/grub.install b/libre/grub-crypt-git/grub.install
new file mode 100644
index 000000000..c13ef99c7
--- /dev/null
+++ b/libre/grub-crypt-git/grub.install
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+post_upgrade() {
+ # We used to package /boot/grub/grub.cfg, but there is no reason to.
+ # Remove the file from package, but move real file back in place.
+ if [ ! -f /boot/grub/grub.cfg -a -f /boot/grub/grub.cfg.pacsave ]; then
+ mv /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg
+ fi
+}
+
+post_install() {
+ cat << 'EOM'
+Generate your bootloader configuration with:
+ grub-mkconfig -o /boot/grub/grub.cfg
+EOM
+}
+