[PATCH] Fix crash in handling of PReP Boot partitions (#881005)

David Shea dshea at redhat.com
Mon Jul 29 19:17:15 UTC 2013


Fix a crash that occurs when using a kickstart that defines a prepboot
partition followed by autopart.
---
 storage/partitioning.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index b93fc48..1e7f583 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -99,7 +99,12 @@ def _schedulePartitions(anaconda, disks):
         elif request.fstype == "prepboot":
             # make sure there never is more than one prepboot per disk
             bootdev = anaconda.platform.bootDevice()
-            if (bootdev and
+            if (bootdev and bootdev.name.startswith('req')):
+                # we already have a prepboot partition requested
+                log.info("partitioning: skipping additional PReP boot "
+                         "partition request")
+                continue
+            if (bootdev and bootdev.disk and
                 anaconda.id.bootloader.drivelist and
                 anaconda.id.bootloader.drivelist[0] == bootdev.disk.name):
                 # do not allow creating the new PReP boot on the same drive
-- 
1.8.3.1



More information about the anaconda-patches mailing list