[PATCH] Check that bootloader devices are configured before validating (#1100928)
David Shea
dshea at redhat.com
Tue May 27 15:41:58 UTC 2014
---
pyanaconda/bootloader.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index f76af7e..a67d79c 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1353,7 +1353,8 @@ class GRUB(BootLoader):
# If the stage2 device is on a raid1, check that the stage1 device is also redundant,
# either by also being part of an array or by being a disk (which is expanded
# to every disk in the array by install_targets).
- if self.stage2_device.type == "mdarray" and \
+ if self.stage1_device and self.stage2_device and \
+ self.stage2_device.type == "mdarray" and \
self.stage2_device.level == raid.RAID1 and \
self.stage1_device.type != "mdarray":
if not self.stage1_device.isDisk:
--
1.9.0
More information about the anaconda-patches
mailing list