Skip to content

Commit 67a57cc

Browse files
authored
Fix the demo_part_size not initialized issue when creating partition (#14296)
Why I did it The demo_part_size should be initialized before creating partition. How I did it Move the initializing setting to the line before using it. How to verify it
1 parent 20f1ab8 commit 67a57cc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

installer/install.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ fi
138138
# with "OS" or "DIAG".
139139
demo_type="%%DEMO_TYPE%%"
140140

141+
# The build system prepares this script by replacing %%ONIE_IMAGE_PART_SIZE%%
142+
# with the partition size
143+
demo_part_size="%%ONIE_IMAGE_PART_SIZE%%"
144+
141145
# The build system prepares this script by replacing %%IMAGE_VERSION%%
142146
# with git revision hash as a version identifier
143147
image_version="%%IMAGE_VERSION%%"
@@ -236,7 +240,6 @@ if [ "$install_env" = "onie" ]; then
236240
fi
237241
fi
238242

239-
demo_part_size="%%ONIE_IMAGE_PART_SIZE%%"
240243
echo "ONIE_IMAGE_PART_SIZE=$demo_part_size"
241244

242245
extra_cmdline_linux=%%EXTRA_CMDLINE_LINUX%%

0 commit comments

Comments
 (0)