[PATCH 1/2] Fall back to parted to detect dasd disklabels.
David Lehman
dlehman at redhat.com
Thu Oct 2 19:25:06 UTC 2014
blkid does not know how to detect dasd disklabels, so we cannot rely on
the information provided by udev in this case.
Resolves: rhbz#1144410
---
blivet/devicetree.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index 3b59171..6afc356 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -1228,7 +1228,9 @@ class DeviceTree(object):
disklabel_type = udev.device_get_disklabel_type(info)
log_method_call(self, device=device.name, label_type=disklabel_type)
# if there is no disklabel on the device
- if disklabel_type is None:
+ # blkid doesn't understand dasd disklabels, so bypass for dasd
+ if disklabel_type is None and not \
+ (device.isDisk and udev.device_is_dasd(info)):
log.debug("device %s does not contain a disklabel", device.name)
return
--
1.9.3
More information about the anaconda-patches
mailing list