From 4c4e9eec551d4429f1f99747b4fd11a354024845 Mon Sep 17 00:00:00 2001 From: mssonicbld <79238446+mssonicbld@users.noreply.github.com> Date: Fri, 24 Mar 2023 01:20:18 +0800 Subject: [PATCH] Fix the demo_part_size not initialized issue when creating partition (#14296) (#14394) --- installer/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/installer/install.sh b/installer/install.sh index 8ae0fec0e8..51b5a75eb5 100755 --- a/installer/install.sh +++ b/installer/install.sh @@ -138,6 +138,10 @@ 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%%" + # The build system prepares this script by replacing %%IMAGE_VERSION%% # with git revision hash as a version identifier image_version="%%IMAGE_VERSION%%" @@ -236,7 +240,6 @@ if [ "$install_env" = "onie" ]; then fi fi -demo_part_size="%%ONIE_IMAGE_PART_SIZE%%" echo "ONIE_IMAGE_PART_SIZE=$demo_part_size" extra_cmdline_linux=%%EXTRA_CMDLINE_LINUX%%