From 9fa9853f69095e001a7b7b57a7e2b53e84dc0154 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 26 May 2009 14:33:53 +0000 Subject: make sure /proc and /sys are available when building initrd (useful to see error messages at least, from Paulo Ricardo Zanoni) --- lib/MDV/Draklive/Initrd.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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') { -- cgit v1.2.1