Skip to content

Commit

Permalink
allow ONIE_IMAGE_PART_SIZE customization in device specific installer…
Browse files Browse the repository at this point in the history
….conf file
  • Loading branch information
pbudds committed Sep 25, 2023
1 parent e8c94bb commit 327183c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions installer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ echo "onie_platform: $onie_platform"
# Get platform specific linux kernel command line arguments
ONIE_PLATFORM_EXTRA_CMDLINE_LINUX=""

# Start with build time value, set either using env variable
# or from onie-image.conf. onie-mk-demo.sh will string replace
# below value to env value. Platform specific installer.conf
# will override this value if necessary by reading $onie_platform
# after this.
ONIE_IMAGE_PART_SIZE="%%ONIE_IMAGE_PART_SIZE%%"

# Default var/log device size in MB
VAR_LOG_SIZE=4096

Expand Down Expand Up @@ -138,9 +145,8 @@ fi
# with "OS" or "DIAG".
demo_type="%%DEMO_TYPE%%"

# The build system prepares this script by replacing %%ONIE_IMAGE_PART_SIZE%%
# with the partition size
demo_part_size="%%ONIE_IMAGE_PART_SIZE%%"
# take final partition size after platform installer.conf override
demo_part_size=$ONIE_IMAGE_PART_SIZE

# The build system prepares this script by replacing %%IMAGE_VERSION%%
# with git revision hash as a version identifier
Expand Down

0 comments on commit 327183c

Please sign in to comment.