diff options
author | Erik Troan <ewt@redhat.com> | 1999-12-23 17:07:23 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-12-23 17:07:23 +0000 |
commit | 02b5f8364dbb228436002873a56ce4dbd4d9833a (patch) | |
tree | 20ef128efcc8fd42fc63f3fedbc1d66beed070f6 /kickstart.py | |
parent | 8591ddbcad0a4dbf8dca2ab7ab51b7b8f959dd20 (diff) | |
download | anaconda-02b5f8364dbb228436002873a56ce4dbd4d9833a.tar.gz anaconda-02b5f8364dbb228436002873a56ce4dbd4d9833a.tar.xz anaconda-02b5f8364dbb228436002873a56ce4dbd4d9833a.zip |
kickstart w/ raid partitions works
Diffstat (limited to 'kickstart.py')
-rw-r--r-- | kickstart.py | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/kickstart.py b/kickstart.py index 2590eb827..ae097b96c 100644 --- a/kickstart.py +++ b/kickstart.py @@ -242,6 +242,8 @@ class Kickstart(InstallClass): "network" : self.doNetwork , "nfs" : None , "part" : self.definePartition , + "partition" : self.definePartition , + "raid" : self.defineRaid , "reboot" : self.doReboot , "rootpw" : self.doRootPw , "skipx" : self.doSkipX , @@ -298,6 +300,21 @@ class Kickstart(InstallClass): clear = FSEDIT_CLEAR_ALL self.setClearParts(clear) + def defineRaid(self, args): + (args, extra) = isys.getopt(args, '', [ 'level=', 'device=' ] ) + + for n in args: + (str, arg) = n + if str == '--level': + level = int(arg) + elif str == "--device": + raidDev = arg + + mntPoint = extra[0] + extra = extra[1:] + + self.addRaidEntry(mntPoint, raidDev, level, extra) + def definePartition(self, args): # we just set up the desired partitions -- magic in our base class # does the actual partitioning (no, you don't want to know the @@ -324,7 +341,7 @@ class Kickstart(InstallClass): if onPart: self.addToFstab(extra[0], onPart) else: - self.partitions.append((extra[0], size, maxSize, grow)) + self.addNewPartition(extra[0], size, maxSize, grow) def __init__(self, file): InstallClass.__init__(self) |