[PATCH] Make sure stage1_disk isn't empty (#950487)
Brian C. Lane
bcl at redhat.com
Wed May 8 23:29:45 UTC 2013
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:
--
1.8.1.4
More information about the anaconda-patches
mailing list