--- 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:
On Tue, May 27, 2014 at 11:41:58AM -0400, David Shea wrote:
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
Ack
anaconda-patches@lists.fedorahosted.org