grub-efi: Show fwsetup, do not show incompatible memtest even if enabled

This commit is contained in:
Ryan Finnie 2020-07-25 22:35:28 -07:00 committed by Luca Boccassi
parent 9536a37af0
commit 169645b478
1 changed files with 10 additions and 3 deletions

View File

@ -31,13 +31,20 @@ submenu 'Advanced install options ...' --hotkey=a {
}
fi
if @ENABLE_MEMTEST@; then
submenu 'Utilities...' --hotkey=u {
source /boot/grub/theme.cfg
# Memtest (if any)
source /boot/grub/memtest.cfg
if [ "${grub_platform}" = "pc" ] && @ENABLE_MEMTEST@; then
source /boot/grub/memtest.cfg
fi
# Firmware setup (UEFI)
if [ "${grub_platform}" = "efi" ]; then
menuentry "UEFI Firmware Settings" {
fwsetup
}
fi
}
fi