Fix the demo_part_size not initialized issue when creating partition (#14296) (#14394)

This commit is contained in:
mssonicbld 2023-03-24 01:20:18 +08:00 committed by GitHub
parent dad37bf471
commit 4c4e9eec55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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%%