summaryrefslogtreecommitdiffstats
path: root/upgrade.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-11-27 22:40:50 +0000
committerJeremy Katz <katzj@redhat.com>2001-11-27 22:40:50 +0000
commit2917e440afa82045a8f1e3fbfabf642c6b9bb69c (patch)
treefa8ff8e23e7a99a912f5279f460c909c7223d868 /upgrade.py
parent47913796e33561f31dbd0df3ec90db894cefe2f3 (diff)
downloadanaconda-2917e440afa82045a8f1e3fbfabf642c6b9bb69c.tar.gz
anaconda-2917e440afa82045a8f1e3fbfabf642c6b9bb69c.tar.xz
anaconda-2917e440afa82045a8f1e3fbfabf642c6b9bb69c.zip
remove most of the static instances of /mnt/sysimage (#14632)
Diffstat (limited to 'upgrade.py')
-rw-r--r--upgrade.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/upgrade.py b/upgrade.py
index 2785085d0..837fc4255 100644
--- a/upgrade.py
+++ b/upgrade.py
@@ -42,7 +42,7 @@ def findExistingRoots(intf, id, chroot):
win = intf.waitWindow(_("Searching"),
_("Searching for Red Hat Linux installations..."))
- rootparts = diskset.findExistingRootPartitions(intf)
+ rootparts = diskset.findExistingRootPartitions(intf, chroot)
win.pop()
return rootparts
@@ -58,7 +58,7 @@ def mountRootPartition(intf, rootInfo, oldfsset, instPath, allowDirty = 0,
if rootFs == "vfat":
mountLoopbackRoot(root)
else:
- isys.mount(root, '/mnt/sysimage', rootFs)
+ isys.mount(root, instPath, rootFs)
oldfsset.reset()
newfsset = fsset.readFstab(instPath + '/etc/fstab')
@@ -68,7 +68,7 @@ def mountRootPartition(intf, rootInfo, oldfsset, instPath, allowDirty = 0,
if rootFs == "vfat":
unmountLoopbackRoot()
else:
- isys.umount('/mnt/sysimage')
+ isys.umount(instPath)
if not allowDirty and oldfsset.hasDirtyFilesystems():
import sys