On 04/28/2011 04:45 PM, Brian C. Lane wrote:
Well, I wouldn't characterize it as broken. The flag in question
is a
new EFI flag that didn't exist previously. I have added support for it
to the f16 version of parted (parted-2.3-8). It is named legacy_boot. I have not yet
built a livecd-tools for f16 with support for it but you can do it
manually.
You are correct, parted is not broken and was just missing the
functionality I was looking for.
I took the src rpm of the parted package and installed it for el6 which
is the LiveCD OS and the LiveCD build host.
When using parted 2.3-8 and patch the livecd-iso-to-disk script with
the following, things are working well for Legacy Boot.
--- before 2011-04-12 18:10:56.000000000 -0400
+++ after 2011-04-28 13:47:41.000000000 -0400
@@ -421,7 +421,7 @@
/sbin/parted --script $device mklabel gpt
partinfo=$(LC_ALL=C /sbin/parted --script -m $device "unit b
print" |grep ^$device:)
size=$(echo $partinfo |cut -d : -f 2 |sed -e 's/B$//')
- /sbin/parted --script $device unit b mkpart '"EFI System
Partition"' fat32 1048576 $(($size - 1048576)) set 1 boot on
+ /sbin/parted --script $device unit b mkpart '"EFI System
Partition"' fat32 1048576 $(($size - 1048576)) set 1 boot on set 1
legacy_boot on
# Sometimes automount can be _really_ annoying.
echo "Waiting for devices to settle..."
/sbin/udevadm settle
Thanks again.
Gregory Fowler