summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-05-26 14:36:50 +0000
committerOlivier Blin <oblin@mandriva.com>2009-05-26 14:36:50 +0000
commit94372969d87a32c4246b6c58ab002f6683c432a6 (patch)
tree9024d145b9688dc0ece171494da2de8cf9c55eda /lib/MDV/Draklive
parent9fa9853f69095e001a7b7b57a7e2b53e84dc0154 (diff)
downloaddrakiso-94372969d87a32c4246b6c58ab002f6683c432a6.tar
drakiso-94372969d87a32c4246b6c58ab002f6683c432a6.tar.gz
drakiso-94372969d87a32c4246b6c58ab002f6683c432a6.tar.bz2
drakiso-94372969d87a32c4246b6c58ab002f6683c432a6.tar.xz
drakiso-94372969d87a32c4246b6c58ab002f6683c432a6.zip
do not create initrd symlink or append splash if no initrd has been created
Diffstat (limited to 'lib/MDV/Draklive')
-rw-r--r--lib/MDV/Draklive/Initrd.pm12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/MDV/Draklive/Initrd.pm b/lib/MDV/Draklive/Initrd.pm
index 84d81f3..eb0eef8 100644
--- a/lib/MDV/Draklive/Initrd.pm
+++ b/lib/MDV/Draklive/Initrd.pm
@@ -279,12 +279,14 @@ sub create_classical_initrd {
run_({ root => $root }, 'mkinitrd', '-v', '-f', $initrd_long, $kernel);
run_({}, 'umount', $root . '/sys');
run_({}, 'umount', $root . '/proc');
- symlinkf(basename($initrd_long), $root . $initrd_short);
symlinkf(basename($vmlinuz_long), $root . $vmlinuz_short);
- if ($live->{system}{vga_mode} && $live->{system}{splash} ne 'no') {
- require bootloader;
- local $::prefix = $live->get_system_root;
- bootloader::add_boot_splash($initrd_long, $live->{system}{vga_mode});
+ if (-f $root . $initrd_long) {
+ symlinkf(basename($initrd_long), $root . $initrd_short);
+ if ($live->{system}{vga_mode} && $live->{system}{splash} ne 'no') {
+ require bootloader;
+ local $::prefix = $live->get_system_root;
+ bootloader::add_boot_splash($initrd_long, $live->{system}{vga_mode});
+ }
}
}