summaryrefslogtreecommitdiff
path: root/libre/grub/grub.install
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2021-06-18 19:33:03 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2021-06-18 19:33:03 -0500
commit856b2c7c881ecf9ef2607a9a4c4466635fea857f (patch)
tree17abd02904b5504bca58f3077b7714549aae1a88 /libre/grub/grub.install
parent65b231e05ba9c4caf539629e35af29170a326608 (diff)
grub-2:2.06-1.parabola1: updating version
Diffstat (limited to 'libre/grub/grub.install')
-rw-r--r--libre/grub/grub.install17
1 files changed, 14 insertions, 3 deletions
diff --git a/libre/grub/grub.install b/libre/grub/grub.install
index c13ef99c7..c268996d1 100644
--- a/libre/grub/grub.install
+++ b/libre/grub/grub.install
@@ -6,12 +6,23 @@ post_upgrade() {
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
+
+ # return if old package version greater 2:2.06-0...
+ (( $(vercmp $2 '2:2.06-0') > 0 )) && return
+
+ if [[ -e /sys/firmware/efi/efivars ]]; then
+ cat <<EOM
+:: 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
+ fi
}
post_install() {
- cat << 'EOM'
-Generate your bootloader configuration with:
- grub-mkconfig -o /boot/grub/grub.cfg
+ cat <<EOM
+:: Generate your bootloader configuration with:
+ grub-mkconfig -o /boot/grub/grub.cfg
EOM
}