diff options
Diffstat (limited to 'draklive')
-rwxr-xr-x | draklive | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -466,7 +466,12 @@ sub create_bootloader { run_({ root => $live->get_system_root }, '/usr/sbin/grub-gfxmenu', '--update-gfxmenu'); my $boot_dir = $live->get_builddir . $live->{prefix}{build}{boot}; mkdir_p($boot_dir); - cp_f($live->get_system_root . '/boot/gfxmenu', $boot_dir); + my $gfxmenu = $live->get_system_root . '/boot/gfxmenu'; + if (-e $gfxmenu) { + cp_f($gfxmenu, $boot_dir); + } else { + warn "no gfxmenu file\n"; + } } sub create_media_bootloader { |