diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-05-26 15:01:07 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-05-26 15:01:07 +0000 |
commit | 379f68b0e11c56418fc3afe2f68f2b21e4e12d64 (patch) | |
tree | 0b4c424e9d521cc7342ec8651348155cb24b0d41 /lib/MDV/Draklive/Initrd.pm | |
parent | 94372969d87a32c4246b6c58ab002f6683c432a6 (diff) | |
download | draklive-379f68b0e11c56418fc3afe2f68f2b21e4e12d64.tar draklive-379f68b0e11c56418fc3afe2f68f2b21e4e12d64.tar.gz draklive-379f68b0e11c56418fc3afe2f68f2b21e4e12d64.tar.bz2 draklive-379f68b0e11c56418fc3afe2f68f2b21e4e12d64.tar.xz draklive-379f68b0e11c56418fc3afe2f68f2b21e4e12d64.zip |
move vmlinuz symlink creation
Diffstat (limited to 'lib/MDV/Draklive/Initrd.pm')
-rw-r--r-- | lib/MDV/Draklive/Initrd.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MDV/Draklive/Initrd.pm b/lib/MDV/Draklive/Initrd.pm index eb0eef8..9954f6b 100644 --- a/lib/MDV/Draklive/Initrd.pm +++ b/lib/MDV/Draklive/Initrd.pm @@ -269,6 +269,8 @@ sub create_classical_initrd { my $kernel = $live->find_kernel; #- FIXME: use bootloader-config and allow it not to require a bootloader? print "using kernel $kernel\n"; + symlinkf(basename($vmlinuz_long), $root . $vmlinuz_short); + my $initrd_long = '/boot/initrd-'. $kernel . '.img'; my $initrd_short = '/boot/initrd.img'; my $vmlinuz_long = '/boot/vmlinuz-' . $kernel; @@ -279,7 +281,6 @@ sub create_classical_initrd { run_({ root => $root }, 'mkinitrd', '-v', '-f', $initrd_long, $kernel); run_({}, 'umount', $root . '/sys'); run_({}, 'umount', $root . '/proc'); - symlinkf(basename($vmlinuz_long), $root . $vmlinuz_short); if (-f $root . $initrd_long) { symlinkf(basename($initrd_long), $root . $initrd_short); if ($live->{system}{vga_mode} && $live->{system}{splash} ne 'no') { |