summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
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 {