summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Draklive/Initrd.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MDV/Draklive/Initrd.pm')
-rw-r--r--lib/MDV/Draklive/Initrd.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/MDV/Draklive/Initrd.pm b/lib/MDV/Draklive/Initrd.pm
index da112a3..84d81f3 100644
--- a/lib/MDV/Draklive/Initrd.pm
+++ b/lib/MDV/Draklive/Initrd.pm
@@ -274,7 +274,11 @@ sub create_classical_initrd {
my $vmlinuz_long = '/boot/vmlinuz-' . $kernel;
my $vmlinuz_short = '/boot/vmlinuz';
my $root = $live->get_system_root;
+ run_({}, 'mount', '-t', 'proc', '/proc', $root . '/proc');
+ run_({}, 'mount', '-t', 'sysfs', '/sys', $root . '/sys');
run_({ root => $root }, 'mkinitrd', '-v', '-f', $initrd_long, $kernel);
+ run_({}, 'umount', $root . '/sys');
+ run_({}, 'umount', $root . '/proc');
symlinkf(basename($initrd_long), $root . $initrd_short);
symlinkf(basename($vmlinuz_long), $root . $vmlinuz_short);
if ($live->{system}{vga_mode} && $live->{system}{splash} ne 'no') {