From 379f68b0e11c56418fc3afe2f68f2b21e4e12d64 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 26 May 2009 15:01:07 +0000 Subject: move vmlinuz symlink creation --- lib/MDV/Draklive/Initrd.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/MDV/Draklive') 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') { -- cgit v1.2.1