summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-01-20 14:36:27 +0000
committerOlivier Blin <oblin@mandriva.com>2009-01-20 14:36:27 +0000
commit25b1420863189d5da4437b39671c5c5261f6b3b1 (patch)
tree6990df9c0158695c1a87a19131e4faf449dcd92e
parent6a0c000b00e8ed66ab540ca09f22688cfc76a183 (diff)
downloaddraklive-25b1420863189d5da4437b39671c5c5261f6b3b1.tar
draklive-25b1420863189d5da4437b39671c5c5261f6b3b1.tar.gz
draklive-25b1420863189d5da4437b39671c5c5261f6b3b1.tar.bz2
draklive-25b1420863189d5da4437b39671c5c5261f6b3b1.tar.xz
draklive-25b1420863189d5da4437b39671c5c5261f6b3b1.zip
do not crash if there is no gfxmenu file
-rwxr-xr-xdraklive7
1 files changed, 6 insertions, 1 deletions
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 {