diff options
Diffstat (limited to 'grub-improved-luks2-git.install')
-rw-r--r-- | grub-improved-luks2-git.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/grub-improved-luks2-git.install b/grub-improved-luks2-git.install new file mode 100644 index 000000000000..c13ef99c77c5 --- /dev/null +++ b/grub-improved-luks2-git.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 +} + |