From 72c345e168b3b3ccca4e80d44c685f91ff1e01d1 Mon Sep 17 00:00:00 2001 From: gjb Date: Wed, 6 Jun 2018 20:31:15 +0000 Subject: [PATCH] Revert r333006: This revision implemented hybrid ISOs for the amd64 architecture, however it was discovered to have caused a regression in booting legacy-mode (BIOS/CSM). This restores the way ISOs were previously created, as the cause (and differences between head and stable/11 and releng/11.2) have not been entirely identified. Approved by: re (marius) Sponsored by: The FreeBSD Foundation --- release/amd64/mkisoimages.sh | 42 ++---------------------------------- 1 file changed, 2 insertions(+), 40 deletions(-) diff --git a/release/amd64/mkisoimages.sh b/release/amd64/mkisoimages.sh index 3de42cbfccd..153f31f6c7b 100644 --- a/release/amd64/mkisoimages.sh +++ b/release/amd64/mkisoimages.sh @@ -23,18 +23,6 @@ # extra-bits-dir, if provided, contains additional files to be merged # into base-bits-dir as part of making the image. -if [ -z $ETDUMP ]; then - ETDUMP=etdump -fi - -if [ -z $MAKEFS ]; then - MAKEFS=makefs -fi - -if [ -z $MKIMG ]; then - MKIMG=mkimg -fi - if [ "x$1" = "x-b" ]; then # This is highly x86-centric and will be used directly below. bootable="-o bootimage=i386;$4/boot/cdboot -o no-emul-boot" @@ -50,7 +38,7 @@ if [ "x$1" = "x-b" ]; then umount efi rmdir efi mdconfig -d -u $device - bootable="$bootable -o bootimage=i386;efiboot.img -o no-emul-boot -o platformid=efi" + bootable="-o bootimage=i386;efiboot.img -o no-emul-boot $bootable" shift else @@ -67,32 +55,6 @@ NAME="$1"; shift publisher="The FreeBSD Project. http://www.FreeBSD.org/" echo "/dev/iso9660/$LABEL / cd9660 ro 0 0" > "$1/etc/fstab" -$MAKEFS -t cd9660 $bootable -o rockridge -o label="$LABEL" -o publisher="$publisher" "$NAME" "$@" +makefs -t cd9660 $bootable -o rockridge -o label="$LABEL" -o publisher="$publisher" "$NAME" "$@" rm -f "$1/etc/fstab" rm -f efiboot.img - -if [ "$bootable" != "" ]; then - # Look for the EFI System Partition image we dropped in the ISO image. - for entry in `$ETDUMP --format shell $NAME`; do - eval $entry - if [ "$et_platform" = "efi" ]; then - espstart=`expr $et_lba \* 2048` - espsize=`expr $et_sectors \* 512` - espparam="-p efi::$espsize:$espstart" - break - fi - done - - # Create a GPT image containing the partitions we need for hybrid boot. - imgsize=`stat -f %z $NAME` - $MKIMG -s gpt \ - --capacity $imgsize \ - -b $4/boot/pmbr \ - $espparam \ - -p freebsd-boot:=$4/boot/isoboot \ - -o hybrid.img - - # Drop the PMBR, GPT, and boot code into the System Area of the ISO. - dd if=hybrid.img of=$NAME bs=32k count=1 conv=notrunc - rm -f hybrid.img -fi -- 2.45.0