archrelease: copy trunk to staging-x86_64
[arch-packages.git] / grub / trunk / grub.install
blobc448adcdd508622e7b521d1e42ae21a746fd7cfc
1 #!/bin/sh
3 post_upgrade() {
4 # We used to package /boot/grub/grub.cfg, but there is no reason to.
5 # Remove the file from package, but move real file back in place.
6 if [ ! -f /boot/grub/grub.cfg -a -f /boot/grub/grub.cfg.pacsave ]; then
7 mv /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg
8 fi
10 # Give a hint to update installation and configuration one after another.
11 cat <<EOM
12 :: To use the new features provided in this GRUB update, it is recommended
13 to install it to the MBR or UEFI. Due to potential configuration
14 incompatibilities, it is advised to run both, installation and generation
15 of configuration:
16 \$ grub-install ...
17 \$ grub-mkconfig -o /boot/grub/grub.cfg
18 EOM
20 # return if old package version greater 2:2.06-0...
21 (( $(vercmp $2 '2:2.06-0') > 0 )) && return
23 if [[ -e /sys/firmware/efi/efivars ]]; then
24 cat <<EOM
25 :: Grub does no longer support side-loading modules when secure boot is
26 enabled. Thus booting will fail, unless you have an efi executable
27 'grubx64.efi' with bundled modules.
28 EOM
32 post_install() {
33 cat <<EOM
34 :: Install your bootloader and generate configuration with:
35 \$ grub-install ...
36 \$ grub-mkconfig -o /boot/grub/grub.cfg
37 EOM