summaryrefslogtreecommitdiffstats
path: root/upgrade.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2004-12-21 19:58:49 +0000
committerChris Lumens <clumens@redhat.com>2004-12-21 19:58:49 +0000
commit25f1d1b8fcf7da72e2371c579ce032e1dc27a42f (patch)
tree545413c8df1a9546aff958731a822c1d8b084af4 /upgrade.py
parenta7951d05c98d7fee40848c39dabed6d878264bf1 (diff)
downloadanaconda-25f1d1b8fcf7da72e2371c579ce032e1dc27a42f.tar.gz
anaconda-25f1d1b8fcf7da72e2371c579ce032e1dc27a42f.tar.xz
anaconda-25f1d1b8fcf7da72e2371c579ce032e1dc27a42f.zip
Print a more descriptive error message if unable to mount the swap
partition (#143000).
Diffstat (limited to 'upgrade.py')
-rw-r--r--upgrade.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/upgrade.py b/upgrade.py
index 3a4f2053a..3499ba2b9 100644
--- a/upgrade.py
+++ b/upgrade.py
@@ -246,7 +246,7 @@ def createSwapFile(instPath, theFsset, mntPoint, size):
entry.setFormat(1)
theFsset.add(entry)
theFsset.formatEntry(entry, instPath)
- theFsset.turnOnSwap(instPath)
+ theFsset.turnOnSwap(instPath, upgrading=True)
# XXX generalize fstab modification
f = open(fstabPath, "a")
@@ -326,7 +326,7 @@ def upgradeMountFilesystems(intf, rootInfo, oldfsset, instPath):
oldfsset.add(entry)
if flags.setupFilesystems:
- oldfsset.turnOnSwap(instPath)
+ oldfsset.turnOnSwap(instPath, upgrading=True)
# move the old pre-convert db back in case of problems
def resetRpmdb(olddb, instPath):