diff options
-rwxr-xr-x | draklive | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -652,6 +652,17 @@ sub add_splash { sub create_classical_initrd { my ($live) = @_; + my $kernel = find_kernel($live); + #- FIXME: use bootloader-config and allow it not to require a bootloader? + print "using kernel $kernel\n"; + my $initrd_long = '/boot/initrd-'. $kernel . '.img'; + my $initrd_short = '/boot/initrd.img'; + my $vmlinuz_long = '/boot/vmlinuz-' . $kernel; + my $vmlinuz_short = '/boot/vmlinuz'; + my $root = get_system_root($live); + run_({ root => $root }, 'mkinitrd', '-v', '-f', $initrd_long, $kernel); + symlinkf(basename($initrd_long), $root . $initrd_short); + symlinkf(basename($vmlinuz_long), $root . $vmlinuz_short); } sub get_default_append { |