--- storage/devicetree.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/storage/devicetree.py b/storage/devicetree.py index 155b1c9..fe3ab0c 100644 --- a/storage/devicetree.py +++ b/storage/devicetree.py @@ -1272,6 +1272,10 @@ class DeviceTree(object): if device and device.name in self.protectedDevNames: device.protected = True + # Don't try to do format handling on drives without media + if device and not device.mediaPresent: + return + # 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. # XXX this is the bit that forces disklabels on disks. Lame. -- 1.6.4.2 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list