From 59453071456f3907e138018c2789e2b1a2949e9e Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Wed, 11 Jul 2001 04:26:38 +0000 Subject: 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 --- autopart.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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) -- cgit