diff options
Diffstat (limited to 'draklive')
-rwxr-xr-x | draklive | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 { |