summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-09-07 17:35:05 +0000
committerJeremy Katz <katzj@redhat.com>2007-09-07 17:35:05 +0000
commita26b1c5dde1a1e3745f6d1ec9702a78a44277e0d (patch)
tree8682d6baadda73d4629b5f5bb363af48b59db7a1 /packages.py
parent3c502ffaad7883772e7b6d7251edbea0c6d8a69f (diff)
downloadanaconda-a26b1c5dde1a1e3745f6d1ec9702a78a44277e0d.tar.gz
anaconda-a26b1c5dde1a1e3745f6d1ec9702a78a44277e0d.tar.xz
anaconda-a26b1c5dde1a1e3745f6d1ec9702a78a44277e0d.zip
2007-09-07 Jeremy Katz <katzj@redhat.com>
* packages.py (turnOnFilesystems): Turn off swaps that we didn't turn on so that live installs where the system had a swap enabled doesn't blow up
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages.py b/packages.py
index eda44f870..86a5ee9f7 100644
--- a/packages.py
+++ b/packages.py
@@ -139,6 +139,12 @@ def turnOnFilesystems(anaconda):
if flags.setupFilesystems:
if not anaconda.id.upgrade:
+ if not anaconda.id.fsset.isActive():
+ # turn off any swaps that we didn't turn on
+ # needed for live installs
+ iutil.execWithRedirect("swapoff", ["-a"],
+ stdout = "/dev/tty5", stderr="/dev/tty5",
+ searchPath = 1)
anaconda.id.partitions.doMetaDeletes(anaconda.id.diskset)
anaconda.id.fsset.setActive(anaconda.id.diskset)
if not anaconda.id.fsset.isActive():