diff --git a/elements/base/finalise.d/52-force-text-mode-console b/elements/base/finalise.d/52-force-text-mode-console index 86f5414d..d77fbd23 100755 --- a/elements/base/finalise.d/52-force-text-mode-console +++ b/elements/base/finalise.d/52-force-text-mode-console @@ -16,7 +16,9 @@ case $DISTRO in [[ ! -d /boot/grub2 ]] && exit 0 echo 'GRUB_CMDLINE_LINUX="nomodeset vga=normal"' >/etc/default/grub - sed -i -e 's/terminal_output gfxterm/terminal_output console/' /boot/grub2/grub.cfg + if [ -f /boot/grub2/grub.cfg ]; then + sed -i -e 's/terminal_output gfxterm/terminal_output console/' /boot/grub2/grub.cfg + fi ;; esac