diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-24 15:25:13 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-24 15:25:13 +0000 |
commit | 48c1169514c639476b851d4bd08a48469bae30e2 (patch) | |
tree | f3571ac9a5d23cb8ff361477b19828740091de2d /todo.py | |
parent | 25b7a23c74acdc531afe4bdea647ea4ad14678ba (diff) | |
download | anaconda-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.py | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |