From 5774911bfb304c2c9b5d6c3c798c21e2c40b59de Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Wed, 7 Oct 2026 17:56:01 -0700 Subject: [PATCH] EC2: Align partitions to 1 MB boundaries Reviewed by: jlduran, imp MFC after: 2 months Sponsored by: Amazon Differential Revision: https://reviews.freebsd.org/D60455 --- release/tools/ec2.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf index dc1818219816..b6dbee3a3cad 100644 --- a/release/tools/ec2.conf +++ b/release/tools/ec2.conf @@ -20,6 +20,10 @@ export VMSIZE=8000m # and 4096 GB of RAM. export NOSWAP=YES +# Align partitions to 1 MB boundaries; this is recommended by EC2 for +# optimal EBS performance. +export VM_PARTALIGN=1M + ec2_common() { if [ -z "${NO_ROOT}" ]; then echo "ERROR: NO_ROOT not set" >&2