[PATCH] Honor the zerombr kickstart directive.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 storage/devicetree.py |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 2a40fc4..2130bc7 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,
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux