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

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

 



---
 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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux