Page MenuHomeFreeBSD

D33998.diff
No OneTemporary

D33998.diff

diff --git a/release/amd64/mkisoimages.sh b/release/amd64/mkisoimages.sh
--- a/release/amd64/mkisoimages.sh
+++ b/release/amd64/mkisoimages.sh
@@ -85,15 +85,16 @@
done
# Create a GPT image containing the partitions we need for hybrid boot.
+ hybridfilename=$(mktemp /tmp/hybrid.img.XXXXXX)
imgsize=`stat -f %z "$NAME"`
$MKIMG -s gpt \
--capacity $imgsize \
-b "$BASEBITSDIR/boot/pmbr" \
-p freebsd-boot:="$BASEBITSDIR/boot/isoboot" \
$espparam \
- -o hybrid.img
+ -o $hybridfilename
# 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
+ dd if=$hybridfilename of="$NAME" bs=32k count=1 conv=notrunc
+ rm -f $hybridfilename
fi
diff --git a/release/arm64/mkisoimages.sh b/release/arm64/mkisoimages.sh
--- a/release/arm64/mkisoimages.sh
+++ b/release/arm64/mkisoimages.sh
@@ -81,13 +81,14 @@
done
# Create a GPT image containing the EFI partition.
+ efifilename=$(mktemp /tmp/efi.img.XXXXXX)
imgsize=`stat -f %z "$NAME"`
$MKIMG -s gpt \
--capacity $imgsize \
$espparam \
- -o efi.img
+ -o $efifilename
# Drop the GPT into the System Area of the ISO.
- dd if=efi.img of="$NAME" bs=32k count=1 conv=notrunc
- rm -f efi.img
+ dd if=$efifilename of="$NAME" bs=32k count=1 conv=notrunc
+ rm -f $efifilename
fi
diff --git a/release/riscv/mkisoimages.sh b/release/riscv/mkisoimages.sh
--- a/release/riscv/mkisoimages.sh
+++ b/release/riscv/mkisoimages.sh
@@ -81,13 +81,14 @@
done
# Create a GPT image containing the EFI partition.
+ efifilename=$(mktemp /tmp/efi.img.XXXXXX)
imgsize=`stat -f %z "$NAME"`
$MKIMG -s gpt \
--capacity $imgsize \
$espparam \
- -o efi.img
+ -o $efifilename
# Drop the GPT into the System Area of the ISO.
- dd if=efi.img of="$NAME" bs=32k count=1 conv=notrunc
- rm -f efi.img
+ dd if=$efifilename of="$NAME" bs=32k count=1 conv=notrunc
+ rm -f $efifilename
fi

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 8, 7:40 AM (21 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16523696
Default Alt Text
D33998.diff (1 KB)

Event Timeline