[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 15/16] swapoff -a is only needed for livecd, so only do it for livecd.



---
 pyanaconda/packages.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/packages.py b/pyanaconda/packages.py
index 064ba17..2765630 100644
--- a/pyanaconda/packages.py
+++ b/pyanaconda/packages.py
@@ -93,7 +93,9 @@ def turnOnFilesystems(anaconda):
         return DISPATCH_NOOP
 
     if not anaconda.upgrade:
-        if not anaconda.storage.fsset.active:
+        if (flags.livecdInstall and
+            not flags.imageInstall and
+            not anaconda.storage.fsset.active):
             # turn off any swaps that we didn't turn on
             # needed for live installs
             iutil.execWithRedirect("swapoff", ["-a"],
-- 
1.7.3.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]