[PATCH] Make sure stage1_disk isn't empty (#950487)

Vratislav Podzimek vpodzime at redhat.com
Thu May 9 09:40:49 UTC 2013


On Wed, 2013-05-08 at 16:29 -0700, Brian C. Lane wrote:
> From: "Brian C. Lane" <bcl at redhat.com>
> 
> ---
>  pyanaconda/bootloader.py | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
> index 3e4442a..475cacb 100644
> --- a/pyanaconda/bootloader.py
> +++ b/pyanaconda/bootloader.py
> @@ -1578,6 +1578,9 @@ class GRUB2(GRUB):
>             and self.stage2_device.type == "partition":
>              return ret
>  
> +        if not self.stage1_disk:
> +            return False
> +
>          # If the first partition starts too low show an error.
>          parts = self.stage1_disk.format.partedDisk.partitions
>          for p in parts:
ACK.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list