summaryrefslogtreecommitdiffstats
path: root/rescue/bin
diff options
context:
space:
mode:
Diffstat (limited to 'rescue/bin')
-rwxr-xr-xrescue/bin/guessmounts4
-rwxr-xr-xrescue/bin/install_bootloader4
2 files changed, 3 insertions, 5 deletions
diff --git a/rescue/bin/guessmounts b/rescue/bin/guessmounts
index 35da03cb0..494f98f44 100755
--- a/rescue/bin/guessmounts
+++ b/rescue/bin/guessmounts
@@ -156,9 +156,11 @@ if ($root) {
system('mount', '-t', $_->{fs_type}, $dev, $where, '-o', $_->{options});
}
system(qw(mount -t proc proc), "$target/proc");
- foreach (qw(/dev /run /sys)) {
+ foreach (qw(/dev /run)) {
system('mount', '--bind', $_, "$target/$_");
}
+ system(qw(mount -t sysfs sysfs), "$target/sys");
+ system(qw(mount -t efivarfs efivarfs), "$target/sys/firmware/efi/efivars") if is_uefi();
print STDERR "\nYour system is ready on $target.\n\n";
} else {
die "Could not find your root device :-(.\n";
diff --git a/rescue/bin/install_bootloader b/rescue/bin/install_bootloader
index f2717449b..3eeb7a65e 100755
--- a/rescue/bin/install_bootloader
+++ b/rescue/bin/install_bootloader
@@ -67,8 +67,4 @@ if (!$auto) {
<STDIN> =~ /^n/i and exit 0;
}
-run_program::run('mount', '--bind', '/dev', "$::prefix/dev");
-run_program::run('mount', '--bind', '/sys', "$::prefix/sys");
$install->();
-run_program::run('umount', "$::prefix/sys");
-run_program::run('umount', "$::prefix/dev");