[rhel7/blivet 1/2] check for stage1 when not installing bootloader (#882065)
Brian C. Lane
bcl at redhat.com
Fri Feb 1 19:52:51 UTC 2013
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"
--
1.8.0.2
More information about the anaconda-patches
mailing list