summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-01-25 18:30:40 +0000
committerThierry Vignaud <tv@mageia.org>2012-01-25 18:30:40 +0000
commitf87c1d1a96191922804504101c4202aa66b8c986 (patch)
tree8f26e75476e938a1e6f4bfb04134013fca75d8d4 /rescue
parent5666287affd06931a7e49d228b3a68f2e0bb20b4 (diff)
downloaddrakx-backup-do-not-use-f87c1d1a96191922804504101c4202aa66b8c986.tar
drakx-backup-do-not-use-f87c1d1a96191922804504101c4202aa66b8c986.tar.gz
drakx-backup-do-not-use-f87c1d1a96191922804504101c4202aa66b8c986.tar.bz2
drakx-backup-do-not-use-f87c1d1a96191922804504101c4202aa66b8c986.tar.xz
drakx-backup-do-not-use-f87c1d1a96191922804504101c4202aa66b8c986.zip
do not try to alter /etc/mtab, it's linked on /proc anyway..., mount /proc instead
Diffstat (limited to 'rescue')
-rw-r--r--rescue/NEWS1
-rwxr-xr-xrescue/guessmounts2
2 files changed, 2 insertions, 1 deletions
diff --git a/rescue/NEWS b/rescue/NEWS
index 25aa6c759..3fa988bf4 100644
--- a/rescue/NEWS
+++ b/rescue/NEWS
@@ -4,6 +4,7 @@
- fix mounting / on LV
- fix mounting / on soft RAID or crypted LV (mga#3778 & mga#448)
- include xz for xz modules
+- mount /proc in chroot
- only consider fstab from the selected fs
- switch to udev
diff --git a/rescue/guessmounts b/rescue/guessmounts
index 3d508f1df..78a5c613d 100755
--- a/rescue/guessmounts
+++ b/rescue/guessmounts
@@ -105,8 +105,8 @@ if ($root) {
mkdir_p($where);
print STDERR "\t$dev on $where type $_->{fs_type} options $_->{options}\n";
system("mount -t $_->{fs_type} $dev $where -o $_->{options}");
- system("cp -f /etc/mtab $target/etc/mtab"); #- to allow a nice chrooted "mount" or "df"
}
+ system("mount -t proc proc $target/proc");
print STDERR "\nYour system is ready on $target.\n\n";
} else {
die "Could not find your root device :-(.\n";