[PATCH] Check that bootloader devices are configured before validating (#1100928)

Brian C. Lane bcl at redhat.com
Wed May 28 00:25:13 UTC 2014


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

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list