diff options
-rwxr-xr-x | draklive | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -613,7 +613,8 @@ sub build_syslinux_cfg { my $to_root = get_boot_setting($media, 'fs', $opts) eq 'vfat'; my ($initrd, $kernel, $bootlogo, $help) = map { $to_root ? basename($_) : $_ } map { $live->{prefix}{media}{boot} . $_ } get_initrd_path($media), @syslinux_boot_files; - my $has_bootlogo = -e get_builddir($live) . $live->{prefix}{build}{boot} . '/syslinux/bootlogo'; + my $has_bootlogo = $live->{system}{gfxboot} && + -e get_builddir($live) . $live->{prefix}{build}{boot} . '/syslinux/bootlogo'; my $timeout = get_bootloader_timeout($live) * 10; join("\n", "default $live->{media}{title}", @@ -638,7 +639,7 @@ sub build_grub_cfg { my $grub_part = "(hd0" . (defined $part_nb ? "," . ($part_nb-1) : "") . ")"; join("\n", "timeout " . get_bootloader_timeout($live), - "gfxmenu $grub_part" . $live->{prefix}{media}{boot} . "/gfxmenu", + if_($live->{system}{gfxboot}, "gfxmenu $grub_part" . $live->{prefix}{media}{boot} . "/gfxmenu"), "default 0", (map { my ($name, $cmdline) = @$_; |