···281281 else
282282 insmod vbe
283283 fi
284284- insmod font
285285- if loadfont " . $grubBoot->path . "/converted-font.pf2; then
286286- insmod gfxterm
287287- if [ \"\${grub_platform}\" = \"efi\" ]; then
288288- set gfxmode=$gfxmodeEfi
289289- set gfxpayload=keep
290290- else
291291- set gfxmode=$gfxmodeBios
292292- set gfxpayload=text
293293- fi
294294- terminal_output gfxterm
295295- fi
296284 ";
297285298286 if ($font) {
299287 copy $font, "$bootPath/converted-font.pf2" or die "cannot copy $font to $bootPath\n";
288288+ $conf .= "
289289+ insmod font
290290+ if loadfont " . $grubBoot->path . "/converted-font.pf2; then
291291+ insmod gfxterm
292292+ if [ \"\${grub_platform}\" = \"efi\" ]; then
293293+ set gfxmode=$gfxmodeEfi
294294+ set gfxpayload=keep
295295+ else
296296+ set gfxmode=$gfxmodeBios
297297+ set gfxpayload=text
298298+ fi
299299+ terminal_output gfxterm
300300+ fi
301301+ ";
300302 }
301303 if ($splashImage) {
302304 # Keeps the image's extension.