diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-07-16 17:20:09 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-07-16 17:20:09 +0000 |
commit | 5c5cc267a25b8f2c3989a0dc5b1ba017a2f857fb (patch) | |
tree | ebfeb1dee31f77dce0eb66b30afd5dfaf881deb3 | |
parent | a8bd0d2af7e22e2ac97da19399338f605c189303 (diff) | |
download | drakiso-5c5cc267a25b8f2c3989a0dc5b1ba017a2f857fb.tar drakiso-5c5cc267a25b8f2c3989a0dc5b1ba017a2f857fb.tar.gz drakiso-5c5cc267a25b8f2c3989a0dc5b1ba017a2f857fb.tar.bz2 drakiso-5c5cc267a25b8f2c3989a0dc5b1ba017a2f857fb.tar.xz drakiso-5c5cc267a25b8f2c3989a0dc5b1ba017a2f857fb.zip |
generate "classical" initrd (for harddisk installs)
-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 { |