summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-04-30 10:20:19 -0400
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-04-30 21:26:54 +0200
commit659ab26a581ce73eb5ed83dfc34e398ab9d81dcb (patch)
tree8c8679b16e03cffd79a6fec3382012de0d4efb47 /rescue
parentc0b634dd6e8585e7ee85fb8f1965476ae0ad58e8 (diff)
downloaddrakx-659ab26a581ce73eb5ed83dfc34e398ab9d81dcb.tar
drakx-659ab26a581ce73eb5ed83dfc34e398ab9d81dcb.tar.gz
drakx-659ab26a581ce73eb5ed83dfc34e398ab9d81dcb.tar.bz2
drakx-659ab26a581ce73eb5ed83dfc34e398ab9d81dcb.tar.xz
drakx-659ab26a581ce73eb5ed83dfc34e398ab9d81dcb.zip
guessmount: mount {/dev,/run,/sys} too (mga#10865)
those are mounted by udev not fstab those days
Diffstat (limited to 'rescue')
-rw-r--r--rescue/NEWS1
-rwxr-xr-xrescue/bin/guessmounts3
2 files changed, 4 insertions, 0 deletions
diff --git a/rescue/NEWS b/rescue/NEWS
index 1f6f24a81..7469c0785 100644
--- a/rescue/NEWS
+++ b/rescue/NEWS
@@ -1,3 +1,4 @@
+- guessmount: mount /dev, /run & /sys too (mga#10865)
- lsparts (mga#8854):
o display label too
o silent run_program
diff --git a/rescue/bin/guessmounts b/rescue/bin/guessmounts
index 27b920c9d..13ec2802e 100755
--- a/rescue/bin/guessmounts
+++ b/rescue/bin/guessmounts
@@ -138,6 +138,9 @@ if ($root) {
system("mount -t $_->{fs_type} $dev $where -o $_->{options}");
}
system("mount -t proc proc $target/proc");
+ foreach (qw(/dev /run /sys)) {
+ system('mount', '--bind', $_, "$target/$_");
+ }
print STDERR "\nYour system is ready on $target.\n\n";
} else {
die "Could not find your root device :-(.\n";