Skip to content

Commit 9c6221f

Browse files
committed
Remove platform check while generating the partition dump post onie installer build
1 parent db8c34a commit 9c6221f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

build_image.sh

+6-8
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,13 @@ if [ "$IMAGE_TYPE" = "onie" ]; then
3838

3939
## Generate a compressed 8GB partition dump that can be used to 'dd' in-lieu of using the onie-nos-installer
4040
## The 'build' install mode of the installer is used to generate this dump.
41-
if [[ "$TARGET_MACHINE" == "broadcom" ]] && [[ -n "$DELL_Z9100_PLATFORM_MODULE_VERSION" || -n "$DELL_S6100_PLATFORM_MODULE_VERSION" ]]; then
42-
sudo chmod a+x $OUTPUT_ONIE_IMAGE
43-
sudo ./$OUTPUT_ONIE_IMAGE
41+
sudo chmod a+x $OUTPUT_ONIE_IMAGE
42+
sudo ./$OUTPUT_ONIE_IMAGE
4443

45-
if [ -r /tmp/sonic-${TARGET_MACHINE}_8GB_dd.img.gz ]; then
46-
sudo mv /tmp/sonic-${TARGET_MACHINE}_8GB_dd.img.gz target
47-
else
48-
echo "/tmp/sonic-${TARGET_MACHINE}_8GB_dd.img.gz not found !\n"
49-
fi
44+
if [ -r /tmp/sonic-${TARGET_MACHINE}_8GB_dd.img.gz ]; then
45+
sudo mv /tmp/sonic-${TARGET_MACHINE}_8GB_dd.img.gz target
46+
else
47+
echo "/tmp/sonic-${TARGET_MACHINE}_8GB_dd.img.gz not found !\n"
5048
fi
5149

5250
## Use 'aboot' as target machine category which includes Aboot as bootloader

0 commit comments

Comments
 (0)