Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142714756
D21385.id61614.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D21385.id61614.diff
View Options
Index: head/release/amd64/mkisoimages.sh
===================================================================
--- head/release/amd64/mkisoimages.sh
+++ head/release/amd64/mkisoimages.sh
@@ -45,7 +45,7 @@
# This is highly x86-centric and will be used directly below.
bootable="-o bootimage=i386;$BASEBITSDIR/boot/cdboot -o no-emul-boot"
- # Make EFI system partition (should be done with makefs in the future)
+ # Make EFI system partition.
# The ISO file is a special case, in that it only has a maximum of
# 800 KB available for the boot code. So make an 800 KB ESP
espfilename=$(mktemp /tmp/efiboot.XXXXXX)
Index: head/tools/boot/install-boot.sh
===================================================================
--- head/tools/boot/install-boot.sh
+++ head/tools/boot/install-boot.sh
@@ -43,7 +43,7 @@
}
make_esp_file() {
- local file sizekb loader device mntpt fatbits efibootname
+ local file sizekb loader device stagedir fatbits efibootname
file=$1
sizekb=$2
@@ -57,17 +57,17 @@
fatbits=12
fi
- dd if=/dev/zero of="${file}" bs=1k count="${sizekb}"
- device=$(mdconfig -a -t vnode -f "${file}")
- newfs_msdos -F "${fatbits}" -c 1 -L EFISYS "/dev/${device}" > /dev/null 2>&1
- mntpt=$(mktemp -d /tmp/stand-test.XXXXXX)
- mount -t msdosfs "/dev/${device}" "${mntpt}"
- mkdir -p "${mntpt}/EFI/BOOT"
+ stagedir=$(mktemp -d /tmp/stand-test.XXXXXX)
+ mkdir -p "${stagedir}/EFI/BOOT"
efibootname=$(get_uefi_bootname)
- cp "${loader}" "${mntpt}/EFI/BOOT/${efibootname}.efi"
- umount "${mntpt}"
- rmdir "${mntpt}"
- mdconfig -d -u "${device}"
+ cp "${loader}" "${stagedir}/EFI/BOOT/${efibootname}.efi"
+ makefs -t msdos \
+ -o fat_type=${fatbits} \
+ -o sectors_per_cluster=1 \
+ -o volume_label=EFISYS \
+ -s ${sizekb}k \
+ "${file}" "${stagedir}"
+ rm -rf "${stagedir}"
}
make_esp_device() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 23, 2:34 PM (2 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27885757
Default Alt Text
D21385.id61614.diff (1 KB)
Attached To
Mode
D21385: Use makefs -t msdos in make_esp_file
Attached
Detach File
Event Timeline
Log In to Comment