summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-06-27 04:15:50 +0000
committerJeremy Katz <katzj@redhat.com>2001-06-27 04:15:50 +0000
commita4692d2a021a2add9a2252d49022b04e024607d9 (patch)
tree1c4a7ff1b1a2407943bc298f3e659032a0ff5f9f /kickstart.py
parentef6b9a9094c9d753dcc77c360143a90faae34f1e (diff)
downloadanaconda-a4692d2a021a2add9a2252d49022b04e024607d9.tar.gz
anaconda-a4692d2a021a2add9a2252d49022b04e024607d9.tar.xz
anaconda-a4692d2a021a2add9a2252d49022b04e024607d9.zip
fix kickstart bootloader and partitioning
move setting of the fsset out of gui and tui and into partitioningComplete
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py26
1 files changed, 8 insertions, 18 deletions
diff --git a/kickstart.py b/kickstart.py
index 442758e8e..084fa130b 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -544,21 +544,8 @@ class KickstartBase(BaseInstallClass):
self.packageList = packages
self.excludedList = excludedPackages
- # XXX actual partitioning processing should happen after %pre
- doPartitioning(id.diskset, id.partrequests)
- for request in id.partrequests.requests:
- # XXX improve sanity checking
- if not request.fstype or (request.fstype.isMountable() and not request.mountpoint):
- continue
- entry = request.toEntry()
- id.fsset.add (entry)
-
- # XXX bootloader stuff shouldn't be done here either
- choices = id.fsset.bootloaderChoices(id.diskset)
- if not choices:
- raise RuntimeError, "Unable to find device to install bootloader to"
- device = choices[0][0]
- id.bootloader.setDevice(device)
+ # XXX this is just not really a good way to do this...
+ id.bootloader.setDefaultDevice = 1
# test to see if they specified to clear partitions and also
# tried to --onpart on a logical partition
@@ -588,8 +575,8 @@ class KickstartBase(BaseInstallClass):
# XXX invalid clearpart arguments
return
- # XXX need to include list of drive to restrict clear to!
- doClearPartAction(id, type, None)
+ # XXX want to have --drive hda,hdb
+ self.setClearParts(id, type, None)
def defineRaid(self, args):
(args, extra) = isys.getopt(args, '', [ 'level=', 'device=' ] )
@@ -684,9 +671,12 @@ class KickstartBase(BaseInstallClass):
if not format:
request.format = 0
- id.partrequests.addRequest(request)
+ id.autoPartitionRequests.append(request)
self.skipSteps.append("partition")
+ self.skipSteps.append("partitionmethod")
+ self.skipSteps.append("partitionmethodsetup")
+ self.skipSteps.append("fdisk")
self.skipSteps.append("autopartition")
def setSteps(self, dispatch):