summaryrefslogtreecommitdiffstats
path: root/upgrade.py
diff options
context:
space:
mode:
authorbfox <bfox>2001-03-13 00:34:43 +0000
committerbfox <bfox>2001-03-13 00:34:43 +0000
commit40a57c462d1d0945b8f86aa792c2ae487101b345 (patch)
tree0a6174e54b679b455a123c77caf1b3a246253f8d /upgrade.py
parent208bf5cf3d81075be86dfa97de6f5e4948e07014 (diff)
downloadanaconda-40a57c462d1d0945b8f86aa792c2ae487101b345.tar.gz
anaconda-40a57c462d1d0945b8f86aa792c2ae487101b345.tar.xz
anaconda-40a57c462d1d0945b8f86aa792c2ae487101b345.zip
wired up the swap upgrade GUI window
Diffstat (limited to 'upgrade.py')
-rw-r--r--upgrade.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/upgrade.py b/upgrade.py
index 4ae86fb87..ef10d5909 100644
--- a/upgrade.py
+++ b/upgrade.py
@@ -156,11 +156,11 @@ def createSwapFile(instPath, theFstab, mntPoint, size, progressWindow):
instPath = "/mnt/loophost"
prefix = "/initrd/loopfs"
- file = "/SWAP"
+ file = mntPoint + "/SWAP"
count = 0
while (os.access(instPath + file, os.R_OK)):
count = count + 1
- file = "/SWAP-%d" % count
+ file = "%s/SWAP-%d" % mntPoint, count
theFstab.addMount(file, size, "swap")
theFstab.turnOnSwap(instPath, progressWindow)
@@ -169,3 +169,11 @@ def createSwapFile(instPath, theFstab, mntPoint, size, progressWindow):
f.write(fstab.fstabFormatString % (prefix + file, "swap", "swap", "defaults",
0, 0))
f.close()
+
+
+
+
+
+
+
+