Skip to content

Commit

Permalink
Merge pull request #1840 from jongwu/stable-2.1_image_align
Browse files Browse the repository at this point in the history
back port: image_build: align image size to 128M for arm64
  • Loading branch information
fidencio committed May 13, 2021
2 parents 9a32a3e + 260f59d commit dd26aa5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tools/osbuilder/image-builder/image_builder.sh
Expand Up @@ -63,11 +63,8 @@ readonly -a systemd_files=(
# Set a default value
AGENT_INIT=${AGENT_INIT:-no}

# Align image to (size in MB) according to different architecture.
case "$(uname -m)" in
aarch64) readonly mem_boundary_mb=16 ;;
*) readonly mem_boundary_mb=128 ;;
esac
# Align image to 128M
readonly mem_boundary_mb=128

# shellcheck source=../scripts/lib.sh
source "${lib_file}"
Expand Down

0 comments on commit dd26aa5

Please sign in to comment.