grub.install 427 B

123456789101112131415161718
  1. #!/bin/sh
  2. post_upgrade() {
  3. # We used to package /boot/grub/grub.cfg, but there is no reason to.
  4. # Remove the file from package, but move real file back in place.
  5. if [ ! -f /boot/grub/grub.cfg -a -f /boot/grub/grub.cfg.pacsave ]; then
  6. mv /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg
  7. fi
  8. }
  9. post_install() {
  10. cat << 'EOM'
  11. Generate your bootloader configuration with:
  12. grub-mkconfig -o /boot/grub/grub.cfg
  13. EOM
  14. }