summaryrefslogtreecommitdiffstats
path: root/lib/MDV
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MDV')
-rw-r--r--lib/MDV/Draklive/Initrd.pm3
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') {