mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-28 14:24:09 +01:00
Fix virtual machine disk format creating by passing VMFORMAT
to mkimg(1) PR: 200068 Submitted by: Jeremy Norris MFC after: 3 days Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
044a49cd24
commit
ccbf25027e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282772
@ -23,20 +23,21 @@ write_partition_layout() {
|
||||
|
||||
case "${TARGET}:${TARGET_ARCH}" in
|
||||
amd64:amd64 | i386:i386)
|
||||
mkimg -s gpt -b ${BOOTFILES}/i386/pmbr/pmbr \
|
||||
mkimg -s gpt -f ${VMFORMAT} \
|
||||
-b ${BOOTFILES}/i386/pmbr/pmbr \
|
||||
-p freebsd-boot/bootfs:=${BOOTFILES}/i386/gptboot/gptboot \
|
||||
${SWAPOPT} \
|
||||
-p freebsd-ufs/rootfs:=${VMBASE} \
|
||||
-o ${VMIMAGE}
|
||||
;;
|
||||
arm64:aarch64)
|
||||
mkimg -s mbr \
|
||||
mkimg -s mbr -f ${VMFORMAT} \
|
||||
-p efi:=${BOOTFILES}/efi/boot1/boot1.efifat \
|
||||
-p freebsd:=${VMBASE} \
|
||||
-o ${VMIMAGE}
|
||||
;;
|
||||
powerpc:powerpc*)
|
||||
mkimg -s apm \
|
||||
mkimg -s apm -f ${VMFORMAT} \
|
||||
-p apple-boot/bootfs:=${BOOTFILES}/powerpc/boot1.chrp/boot1.hfs \
|
||||
${SWAPOPT} \
|
||||
-p freebsd-ufs/rootfs:=${VMBASE} \
|
||||
|
Loading…
Reference in New Issue
Block a user