diff options
author | David Lehman <dlehman@redhat.com> | 2009-03-11 23:02:16 -0500 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2009-03-12 10:50:56 -0500 |
commit | e4cd790b81531c9814a4e15374a9f49f73f0487d (patch) | |
tree | c0e5f3b5c533f8259a1371ea5cfe6994444ac115 /storage | |
parent | 2c6e9c9f2601c129c16e3f4336342bdd10fa3e3d (diff) | |
download | anaconda-e4cd790b81531c9814a4e15374a9f49f73f0487d.tar.gz anaconda-e4cd790b81531c9814a4e15374a9f49f73f0487d.tar.xz anaconda-e4cd790b81531c9814a4e15374a9f49f73f0487d.zip |
Honor the zerombr kickstart directive.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/devicetree.py | 12 |
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, |