summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2010-08-11 14:46:48 +0000
committerOlivier Blin <oblin@mandriva.com>2010-08-11 14:46:48 +0000
commit26372cd9f8fae971b9cc8c9802276f49c5045441 (patch)
tree1eaa68fbb7cc094dd43e5b4f65241eff39a3390d /draklive
parentfd43d643686a99ffa23063d3abc473a960d7af6d (diff)
downloaddrakiso-26372cd9f8fae971b9cc8c9802276f49c5045441.tar
drakiso-26372cd9f8fae971b9cc8c9802276f49c5045441.tar.gz
drakiso-26372cd9f8fae971b9cc8c9802276f49c5045441.tar.bz2
drakiso-26372cd9f8fae971b9cc8c9802276f49c5045441.tar.xz
drakiso-26372cd9f8fae971b9cc8c9802276f49c5045441.zip
mount /proc and /sys for both classical and media-specific initrd
Diffstat (limited to 'draklive')
-rwxr-xr-xdraklive8
1 files changed, 8 insertions, 0 deletions
diff --git a/draklive b/draklive
index 3dee46b..6165b4d 100755
--- a/draklive
+++ b/draklive
@@ -489,11 +489,19 @@ sub prepare_bootloader {
sub create_initrd {
my ($live) = @_;
+ my $root = $live->get_system_root;
+
+ run_('mount', '-t', 'proc', 'none', $root . '/proc');
+ run_('mount', '-t', 'sysfs', 'none', $root . '/sys');
+
if (need_media_specific_boot($live)) {
MDV::Draklive::Initrd::create_media_initrd($live);
} else {
MDV::Draklive::Initrd::create_classical_initrd($live);
}
+
+ run_('umount', $root . '/sys');
+ run_('umount', $root . '/proc');
}
sub create_bootloader {