UEFI doesn't like nomodeset in safe mode

This commit is contained in:
Roland Clobus 2022-03-25 11:24:18 +01:00
parent 66d47f32f9
commit c2263f1748
No known key found for this signature in database
GPG Key ID: 62C57C6AA61495BD
1 changed files with 8 additions and 0 deletions

View File

@ -164,10 +164,18 @@ else
"${APPEND_LIVE}" \
"l"
if [ "${LB_BOOTAPPEND_LIVE_FAILSAFE}" != "none" ]; then
echo "if [ \"\${grub_platform}\" = \"efi\" ]; then" >> "${LIVE_ENTRIES_TMP}"
# For EFI: remove 'nomodeset' from the kernel options
Grub_live_menu_entry "Live system (${_FLAVOUR} fail-safe mode)" \
"/${INITFS}/${DEFAULT_KERNEL}" \
"/${INITFS}/${DEFAULT_INITRD}" \
"$(echo "${LB_BOOTAPPEND_LIVE_FAILSAFE}" | sed -e 's/nomodeset //')"
echo "else" >> "${LIVE_ENTRIES_TMP}"
Grub_live_menu_entry "Live system (${_FLAVOUR} fail-safe mode)" \
"/${INITFS}/${DEFAULT_KERNEL}" \
"/${INITFS}/${DEFAULT_INITRD}" \
"${LB_BOOTAPPEND_LIVE_FAILSAFE}"
echo "fi" >> "${LIVE_ENTRIES_TMP}"
fi
fi