diff --git a/ChangeLog b/ChangeLog index d48fdf477..1d4c32c62 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-02-03 Robert Millan + + * util/grub.d/00_header.in: Issue scripting commands for GRUB to + only setup gfxterm when `font' command has succeeded. + 2008-02-03 Robert Millan * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS] diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in index 01e92eda0..25c51627d 100644 --- a/util/grub.d/00_header.in +++ b/util/grub.d/00_header.in @@ -42,15 +42,14 @@ if [ "x${GRUB_DRIVE}" = "x" ] ; then : ; else echo "set root=${GRUB_DRIVE}" fi -if [ "x${GRUB_FONT_PATH}" = "x" ] ; then : ; else - echo "font ${GRUB_FONT_PATH}" -fi - case ${platform}:${GRUB_TERMINAL} in pc:gfxterm) cat << EOF -set gfxmode=640x480 -insmod gfxterm -insmod vbe +if font ${GRUB_FONT_PATH} ; then + set gfxmode=640x480 + insmod gfxterm + insmod vbe + terminal gfxterm +fi EOF ;; *:serial) @@ -59,7 +58,9 @@ EOF GRUB_SERIAL_COMMAND=serial fi echo "${GRUB_SERIAL_COMMAND}" + echo "terminal serial" + ;; + *:*) + echo "terminal ${GRUB_TERMINAL}" ;; esac - -echo "terminal ${GRUB_TERMINAL}"