mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-17 14:58:16 +00:00
Merge pull request #405 from justin-he/boundary_mb
image_builder: Reduce the boundary mb for reducing image size on arm64
This commit is contained in:
@@ -63,11 +63,9 @@ readonly -a systemd_files=(
|
|||||||
# Set a default value
|
# Set a default value
|
||||||
AGENT_INIT=${AGENT_INIT:-no}
|
AGENT_INIT=${AGENT_INIT:-no}
|
||||||
|
|
||||||
|
# Align image to (size in MB) according to different architecture.
|
||||||
# In order to support memory hotplug, image must be aligned to
|
|
||||||
# memory section(size in MB) according to different architecture.
|
|
||||||
case "$(uname -m)" in
|
case "$(uname -m)" in
|
||||||
aarch64) readonly mem_boundary_mb=1024 ;;
|
aarch64) readonly mem_boundary_mb=16 ;;
|
||||||
*) readonly mem_boundary_mb=128 ;;
|
*) readonly mem_boundary_mb=128 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user