[rhel7/blivet 1/2] check for stage1 when not installing bootloader (#882065)
David Lehman
dlehman at redhat.com
Fri Feb 1 21:12:26 UTC 2013
Both of these look fine.
On Fri, 2013-02-01 at 11:52 -0800, Brian C. Lane wrote:
> From: "Brian C. Lane" <bcl at redhat.com>
>
> When not installing a bootloader stage1_device may not be set, need to
> check before using it.
> ---
> pyanaconda/storage/partitioning.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/pyanaconda/storage/partitioning.py b/pyanaconda/storage/partitioning.py
> index 87372fa..d6b4dde 100644
> --- a/pyanaconda/storage/partitioning.py
> +++ b/pyanaconda/storage/partitioning.py
> @@ -139,7 +139,7 @@ def _schedulePartitions(storage, disks):
> log.info("skipping unneeded stage1 %s request" % request.fstype)
> log.debug(request)
>
> - if request.fstype == "efi":
> + if request.fstype == "efi" and stage1_device:
> # Set the mountpoint for the existing EFI boot partition
> stage1_device.format.mountpoint = "/boot/efi"
>
More information about the anaconda-patches
mailing list