summaryrefslogtreecommitdiffstats
path: root/kickstart.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-03-13 00:22:15 +0000
committerMike Fulbright <msf@redhat.com>2001-03-13 00:22:15 +0000
commit6bd867f7ac8e8db35a8b1b453fdc5c046d4b7091 (patch)
tree47535b509895e2a0912afe87fd8df96fa9dafd2e /kickstart.py
parente95ca40d0c545879b3292fa81d522da5462fe2e9 (diff)
downloadanaconda-6bd867f7ac8e8db35a8b1b453fdc5c046d4b7091.tar.gz
anaconda-6bd867f7ac8e8db35a8b1b453fdc5c046d4b7091.tar.xz
anaconda-6bd867f7ac8e8db35a8b1b453fdc5c046d4b7091.zip
fix for bug 29544 - we were not handling kickstart raid specifications which used --onpart correctly
Diffstat (limited to 'kickstart.py')
-rw-r--r--kickstart.py19
1 files changed, 18 insertions, 1 deletions
diff --git a/kickstart.py b/kickstart.py
index e72fdf9ee..0feefce2e 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -43,8 +43,25 @@ class Script:
class KickstartBase(BaseInstallClass):
def mergeFstabEntries(self, todo):
+ # this is pretty bad - needs complete rewrite of how we handle
+ # --onpart specified partitions.
+ #
+ # we DO NOT want to add raid type partitions at this point
+ # because they are not going to be mounted on final system
+ # HOWEVER, they are in the install class fstab because we need
+ # them there to map from existing partitions to the 'raid.xx'
+ # name we use in the ks.cfg to designate components of a raid
+ # device which also have a --onpart directive.
+ raidFilter = {}
+ for (mntPoint, raidDev, level, devices) in self.raidList:
+ for dev in devices:
+ raidFilter[dev] = 1
+
for (mntpoint, (dev, fstype, reformat)) in self.fstab:
- todo.fstab.addMount(dev, mntpoint, fstype, reformat)
+ if raidFilter and raidFilter.has_key(mntpoint):
+ continue
+ else:
+ todo.fstab.addMount(dev, mntpoint, fstype, reformat)
def postAction(self, rootPath, serial):
for script in self.postScripts: