[PATCH 4/4] Start storage before parsing the kickstart file.

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

 



This is needed to perform sanity checks on the values given to things like
clearpart --drives, as well as to add requests later on.  Waiting until we're
into the dispatcher steps is too late.
---
 kickstart.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/kickstart.py b/kickstart.py
index 012d1bc..9e95fdb 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -1008,9 +1008,10 @@ def addPartRequest(anaconda, request):
     anaconda.id.storage.autoPartitionRequests.append(request)
 
 def processKickstartFile(anaconda, file):
-    # make sure our disks are alive
-    from partedUtils import DiskSet
-    ds = DiskSet(anaconda)
+    # We need to make sure storage is active before the kickstart file is read.
+    import storage
+    storage.storageInitialize(anaconda)
+    anaconda.dispatch.skipStep("storageinit")
 
     # parse the %pre
     ksparser = KickstartPreParser(AnacondaKSHandler(anaconda))
-- 
1.6.1.3

_______________________________________________
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