diff options
author | Mike Swanson | 2019-06-10 21:30:27 -0700 |
---|---|---|
committer | Mike Swanson | 2019-06-10 21:30:27 -0700 |
commit | 5dbaf1d4ec450878a3ef3b2fb10d858cb806b022 (patch) | |
tree | e963c84d41302266b2472b652859ee95d73a8ef0 /grub-libzfs.install | |
parent | 6cfcc9993789a33f1c5380301d60766f32eb12bf (diff) | |
download | aur-5dbaf1d4ec450878a3ef3b2fb10d858cb806b022.tar.gz |
Update to be in line with main repo 2:2.02-8
Diffstat (limited to 'grub-libzfs.install')
-rw-r--r-- | grub-libzfs.install | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/grub-libzfs.install b/grub-libzfs.install index cf2e4b59535f..c13ef99c77c5 100644 --- a/grub-libzfs.install +++ b/grub-libzfs.install @@ -1,15 +1,17 @@ -post_install() { - if [ -f /boot/grub/grub.cfg.pacsave ]; then - echo "Copying /boot/grub/grub.cfg.pacsave to /boot/grub/grub.cfg" - install -D -m0644 /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg +#!/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' -Generating grub.cfg.example config file... -This may fail on some machines running a custom kernel. +Generate your bootloader configuration with: + grub-mkconfig -o /boot/grub/grub.cfg EOM - - grub-mkconfig -o /boot/grub/grub.cfg.example 2> /dev/null - echo "done." } |