summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-07-16 17:20:09 +0000
committerOlivier Blin <oblin@mandriva.com>2008-07-16 17:20:09 +0000
commit5c5cc267a25b8f2c3989a0dc5b1ba017a2f857fb (patch)
treeebfeb1dee31f77dce0eb66b30afd5dfaf881deb3
parenta8bd0d2af7e22e2ac97da19399338f605c189303 (diff)
downloaddrakiso-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-xdraklive11
1 files changed, 11 insertions, 0 deletions
diff --git a/draklive b/draklive
index 012a29c..c4e13b6 100755
--- a/draklive
+++ b/draklive
@@ -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 {