Skip to content

Commit

Permalink
Remove platform check while generating the partition dump post onie i…
Browse files Browse the repository at this point in the history
…nstaller build
  • Loading branch information
padmanarayana committed Jul 28, 2017
1 parent db8c34a commit 9c6221f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@ if [ "$IMAGE_TYPE" = "onie" ]; then

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

if [ -r /tmp/sonic-${TARGET_MACHINE}_8GB_dd.img.gz ]; then
sudo mv /tmp/sonic-${TARGET_MACHINE}_8GB_dd.img.gz target
else
echo "/tmp/sonic-${TARGET_MACHINE}_8GB_dd.img.gz not found !\n"
fi
if [ -r /tmp/sonic-${TARGET_MACHINE}_8GB_dd.img.gz ]; then
sudo mv /tmp/sonic-${TARGET_MACHINE}_8GB_dd.img.gz target
else
echo "/tmp/sonic-${TARGET_MACHINE}_8GB_dd.img.gz not found !\n"
fi

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

0 comments on commit 9c6221f

Please sign in to comment.