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

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



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


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