diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-07-11 04:26:38 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-07-11 04:26:38 +0000 |
commit | 59453071456f3907e138018c2789e2b1a2949e9e (patch) | |
tree | 2315aa80e3c57df49d7c766e4284595d7231486b | |
parent | 2953bf4e4f1ee8da53d584c50db4909c0f741368 (diff) | |
download | anaconda-59453071456f3907e138018c2789e2b1a2949e9e.tar.gz anaconda-59453071456f3907e138018c2789e2b1a2949e9e.tar.xz anaconda-59453071456f3907e138018c2789e2b1a2949e9e.zip |
ia64 autopartitioning voodoo
if linuxonly and have an msdos partition and it has the bootable flag set,
do not delete it and make it our /boot/efi. could contain system utils.
if not linuxonly, just do as normal and blow everything away
-rw-r--r-- | autopart.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/autopart.py b/autopart.py index 76f31ca89..c7c0a1048 100644 --- a/autopart.py +++ b/autopart.py @@ -755,6 +755,23 @@ def doClearPartAction(partitions, diskset): delete = DeleteSpec(drive, part.geom.start, part.geom.end) partitions.addDelete(delete) + if (iutil.getArch() == "ia64") and (linuxOnly == 1): + if not part.is_flag_available(parted.PARTITION_BOOT): + continue + if part.fs_type and part.fs_type.name == "FAT": + if part.get_flag(parted.PARTITION_BOOT): + req = partitions.getRequestByDeviceName(get_partition_name(part)) + req.mountpoint = "/boot/efi" + req.format = 0 + + request = None + for req in partitions.autoPartitionRequests: + if req.mountpoint == "/boot/efi": + request = req + break + if request: + partitions.autoPartitionRequests.remove(request) + part = disk.next_partition(part) |