grub-luks2-improved-stable/grub.install

39 lines
1.2 KiB
Plaintext
Raw Normal View History

#!/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
2012-06-28 19:51:38 +02:00
fi
2022-08-29 11:58:32 +02:00
# Give a hint to update installation and configuration one after another.
cat <<EOM
:: To use the new features provided in this GRUB update, it is recommended
to install it to the MBR or UEFI. Due to potential configuration
incompatibilities, it is advised to run both, installation and generation
of configuration:
\$ grub-install ...
\$ grub-mkconfig -o /boot/grub/grub.cfg
EOM
2021-06-10 23:52:10 +02:00
# return if old package version greater 2:2.06-0...
(( $(vercmp $2 '2:2.06-0') > 0 )) && return
2021-06-08 22:00:12 +02:00
if [[ -e /sys/firmware/efi/efivars ]]; then
cat <<EOM
2021-06-10 23:52:10 +02:00
:: Grub does no longer support side-loading modules when secure boot is
enabled. Thus booting will fail, unless you have an efi executable
'grubx64.efi' with bundled modules.
EOM
2021-06-08 22:00:12 +02:00
fi
}
2012-06-28 19:51:38 +02:00
post_install() {
cat <<EOM
2022-08-29 11:58:32 +02:00
:: Install your bootloader and generate configuration with:
\$ grub-install ...
\$ grub-mkconfig -o /boot/grub/grub.cfg
2012-06-28 19:51:38 +02:00
EOM
}