summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-24 15:25:13 +0000
committerMatt Wilson <msw@redhat.com>1999-09-24 15:25:13 +0000
commit48c1169514c639476b851d4bd08a48469bae30e2 (patch)
treef3571ac9a5d23cb8ff361477b19828740091de2d /todo.py
parent25b7a23c74acdc531afe4bdea647ea4ad14678ba (diff)
downloadanaconda-48c1169514c639476b851d4bd08a48469bae30e2.tar.gz
anaconda-48c1169514c639476b851d4bd08a48469bae30e2.tar.xz
anaconda-48c1169514c639476b851d4bd08a48469bae30e2.zip
1) mount and umount /proc from chroot
2) fixed umountFilesystem to use instpath
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/todo.py b/todo.py
index 659a7fa5c..1ecb993be 100644
--- a/todo.py
+++ b/todo.py
@@ -407,6 +407,8 @@ class ToDo:
def umountFilesystems(self):
if (not self.setupFilesystems): return
+ isys.umount(self.instPath + '/proc')
+
keys = self.mounts.keys ()
keys.sort()
keys.reverse()
@@ -414,8 +416,9 @@ class ToDo:
(device, fsystem, format) = self.mounts[n]
if fsystem != "swap":
try:
- self.log("unmounting /mnt/sysimage/" + n)
- isys.umount('/mnt/sysimage/' + n)
+ mntPoint = self.instPath + n
+ self.log("unmounting " + mntPoint)
+ isys.umount(mntPoint)
except SystemError, (errno, msg):
self.intf.messageWindow(_("Error"),
_("Error unmounting %s: %s") % (device, msg))
@@ -562,6 +565,9 @@ class ToDo:
_("Error mounting %s: %s") % (device, msg))
os.remove( '/tmp/' + device);
+ os.mkdir (self.instPath + '/proc')
+ isys.mount('/proc', self.instPath + '/proc', 'proc')
+
def makeFilesystems(self, createSwap = 1, createFs = 1):
if not self.setupFilesystems: return