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
10 # Give a hint to update installation and configuration one after another.
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
17 \$ grub-mkconfig -o /boot/grub/grub.cfg
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
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.
34 :: Install your bootloader and generate configuration with:
36 \$ grub-mkconfig -o /boot/grub/grub.cfg