Enable EFI system partition on amd64 and i386 VM images
EFI support is a hard requirement for generating Hyper-V Gen2 VM images. Reviewed by: gjb MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D25655
This commit is contained in:
parent
50050b2f41
commit
083c262899
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363187
@ -24,12 +24,17 @@ write_partition_layout() {
|
|||||||
|
|
||||||
case "${TARGET}:${TARGET_ARCH}" in
|
case "${TARGET}:${TARGET_ARCH}" in
|
||||||
amd64:amd64 | i386:i386)
|
amd64:amd64 | i386:i386)
|
||||||
|
# Create an ESP
|
||||||
|
espfilename=$(mktemp /tmp/efiboot.XXXXXX)
|
||||||
|
make_esp_file ${espfilename} ${fat32min} ${BOOTFILES}/efi/loader_lua/loader_lua.efi
|
||||||
mkimg -s gpt -f ${VMFORMAT} \
|
mkimg -s gpt -f ${VMFORMAT} \
|
||||||
-b ${BOOTFILES}/i386/pmbr/pmbr \
|
-b ${BOOTFILES}/i386/pmbr/pmbr \
|
||||||
-p freebsd-boot/bootfs:=${BOOTFILES}/i386/gptboot/gptboot \
|
-p freebsd-boot/bootfs:=${BOOTFILES}/i386/gptboot/gptboot \
|
||||||
|
-p efi:=${espfilename} \
|
||||||
${SWAPOPT} \
|
${SWAPOPT} \
|
||||||
-p freebsd-ufs/rootfs:=${VMBASE} \
|
-p freebsd-ufs/rootfs:=${VMBASE} \
|
||||||
-o ${VMIMAGE}
|
-o ${VMIMAGE}
|
||||||
|
rm ${espfilename}
|
||||||
;;
|
;;
|
||||||
arm64:aarch64)
|
arm64:aarch64)
|
||||||
# Create an ESP
|
# Create an ESP
|
||||||
|
Loading…
Reference in New Issue
Block a user