Re: [PATCH 7/8] Skip disklabel handling for biosraid and multipath members.

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

 



Hi,

On 12/09/2009 08:05 PM, David Lehman wrote:
---
  storage/devicetree.py |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 23a8e57..2eb8d0d 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1313,7 +1313,7 @@ class DeviceTree(object):

          # Now, if the device is a disk, see if there is a usable disklabel.
          # If not, see if the user would like to create one.
-        if device.partitionable:
+        if device.partitionable and not device.format.hidden:
              self.handleUdevDiskLabelFormat(info, device)
              if device.partitioned or self.isIgnored(info):
                  # If the device has a disklabel, or the user chose not to

This won't work, as device.format is an instance of DeviceFormat at this time,
only after the call to handleUdevDeviceFormat, which happens after this,
device.format becomes for example a DMRaidMember instance

Regards,

Hans

_______________________________________________
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