We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7b85af commit d758e44Copy full SHA for d758e44
build_image.sh
@@ -139,7 +139,11 @@ elif [ "$IMAGE_TYPE" = "raw" ]; then
139
## Run the installer
140
## The 'build' install mode of the installer is used to generate this dump.
141
sudo chmod a+x $tmp_output_onie_image
142
- sudo ./$tmp_output_onie_image
+ sudo ./$tmp_output_onie_image || {
143
+ ## Failure during 'build' install mode of the installer results in an incomplete raw image.
144
+ ## Delete the incomplete raw image.
145
+ sudo rm -f $OUTPUT_RAW_IMAGE
146
+ }
147
rm $tmp_output_onie_image
148
149
[ -r $OUTPUT_RAW_IMAGE ] || {
0 commit comments