summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-03-11 23:02:16 -0500
committerDavid Lehman <dlehman@redhat.com>2009-03-12 10:50:56 -0500
commite4cd790b81531c9814a4e15374a9f49f73f0487d (patch)
treec0e5f3b5c533f8259a1371ea5cfe6994444ac115 /storage
parent2c6e9c9f2601c129c16e3f4336342bdd10fa3e3d (diff)
downloadanaconda-e4cd790b81531c9814a4e15374a9f49f73f0487d.tar.gz
anaconda-e4cd790b81531c9814a4e15374a9f49f73f0487d.tar.xz
anaconda-e4cd790b81531c9814a4e15374a9f49f73f0487d.zip
Honor the zerombr kickstart directive.
Diffstat (limited to 'storage')
-rw-r--r--storage/devicetree.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/storage/devicetree.py b/storage/devicetree.py
index 109db1a0c..49f551c34 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -972,7 +972,11 @@ class DeviceTree(object):
device = self.getDeviceByName(name)
if device is None:
try:
- cb=lambda:questionInitializeDisk(self.intf, name)
+ if self.zeroMbr:
+ cb = lambda: True
+ else:
+ cb = lambda: questionInitializeDisk(self.intf, name)
+
device = DiskDevice(name,
major=udev_device_get_major(info),
minor=udev_device_get_minor(info),
@@ -1149,7 +1153,11 @@ class DeviceTree(object):
# Create the DMRaidArray
try:
- cb=lambda:questionInitializeDisk(self.intf,rs.name)
+ if self.zeroMbr:
+ cb = lambda: True
+ else:
+ cb = lambda: questionInitializeDisk(self.intf,
+ rs.name)
dm_array = DMRaidArrayDevice(rs.name,
major=major, minor=minor,
raidSet=rs,