diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-05-30 02:27:37 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-05-30 02:27:37 +0000 |
commit | a23e7ab8717ecb35150d5ae0ebce6f24fed3adf9 (patch) | |
tree | 732474d7c5fc4bddca334edac823525c84f28fab /kickstart.py | |
parent | f957f585c07fef88db7b5e80cbee0da5f02ae451 (diff) | |
download | anaconda-a23e7ab8717ecb35150d5ae0ebce6f24fed3adf9.tar.gz anaconda-a23e7ab8717ecb35150d5ae0ebce6f24fed3adf9.tar.xz anaconda-a23e7ab8717ecb35150d5ae0ebce6f24fed3adf9.zip |
start to pretend to work with lvm on top of raid, but we really don't yet
Diffstat (limited to 'kickstart.py')
-rw-r--r-- | kickstart.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/kickstart.py b/kickstart.py index b4ed9e2cf..a8701f79c 100644 --- a/kickstart.py +++ b/kickstart.py @@ -756,6 +756,7 @@ class KickstartBase(BaseInstallClass): spares = 0 fstype = None format = 1 + uniqueID = None for n in args: (str, arg) = n @@ -776,6 +777,17 @@ class KickstartBase(BaseInstallClass): if extra[0] == 'swap': filesystem = fileSystemTypeGet('swap') mountpoint = None + elif extra[0].startswith("pv."): + filesystem = fileSystemTypeGet("physical volume (LVM)") + mountpoint = None + + if self.ksPVMapping.has_key(extra[0]): + raise RuntimeError, "Defined PV partition %s multiple times" % (extra[0],) + + # get a sort of hackish id + uniqueID = self.ksID + self.ksPVMapping[extra[0]] = uniqueID + self.ksID = self.ksID + 1 else: if fstype: filesystem = fileSystemTypeGet(fstype) @@ -811,6 +823,10 @@ class KickstartBase(BaseInstallClass): raidspares = spares, format = format, raidminor = raidDev) + + if uniqueID: + request.uniqueID = uniqueID + id.partitions.autoPartitionRequests.append(request) |