From 25b1420863189d5da4437b39671c5c5261f6b3b1 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 20 Jan 2009 14:36:27 +0000 Subject: do not crash if there is no gfxmenu file --- draklive | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/draklive b/draklive index 9553f83..7dfad10 100755 --- a/draklive +++ b/draklive @@ -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 { -- cgit v1.2.1