git: fc5a01f8e9ea - stable/14 - release: Comply with Azure Marketplace requirements for aarch64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 08 Nov 2025 17:25:34 UTC
The branch stable/14 has been updated by lwhsu:
URL: https://cgit.FreeBSD.org/src/commit/?id=fc5a01f8e9eace6a6fa7a0c98a70f878f4e196ea
commit fc5a01f8e9eace6a6fa7a0c98a70f878f4e196ea
Author: Li-Wen Hsu <lwhsu@FreeBSD.org>
AuthorDate: 2025-11-07 05:10:44 +0000
Commit: Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2025-11-08 17:25:00 +0000
release: Comply with Azure Marketplace requirements for aarch64
Azure requires the first 1 MB (2,048 sectors) of the OS disk to remain
empty for VM images:
https://learn.microsoft.com/partner-center/marketplace-offers/azure-vm-certification-faq#vm-images-must-have-1-mb-of-free-space
Also append the BOOTPARTSOFFSET suffix for aarch64 images, which only
has an ESP partition for booting.
Co-authored-by: Brad Davis <brd@FreeBSD.org>
Approved by: cperciva
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53628
(cherry picked from commit 36095c942031f7f1613eec554f1c7615cbd891fd)
---
release/tools/vmimage.subr | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr
index 04c0d5bb2bb5..7a078e357adf 100644
--- a/release/tools/vmimage.subr
+++ b/release/tools/vmimage.subr
@@ -304,7 +304,11 @@ vm_create_disk() {
# Create an ESP
espfilename=$(mktemp /tmp/efiboot.XXXXXX)
make_esp_file ${espfilename} ${fat32min} ${BOOTFILES}/efi/loader_lua/loader_lua.efi
- BOOTPARTS="${BOOTPARTS} -p efi/efiesp:=${espfilename}"
+ espsuffix=""
+ if [ -z "${BOOTPARTS}" ]; then
+ espsuffix="${BOOTPARTSOFFSET}"
+ fi
+ BOOTPARTS="${BOOTPARTS} -p efi/efiesp:=${espfilename}${espsuffix}"
# Add this to fstab
mkdir -p ${DESTDIR}/boot/efi