Skip to content

Commit

Permalink
Merge pull request #51 from Azure/201807
Browse files Browse the repository at this point in the history
[devices]: Fix arista-convertfs for aligning flash via sfdisk in Jess…
  • Loading branch information
Alex-Dai committed Feb 22, 2019
2 parents 315b976 + 6bf252f commit d9c7e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/initramfs-tools/arista-convertfs.j2
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ umount "$root_mnt"
if [ $(echo -n "$root_dev" | tail -c 1) == "1" ]; then
# Create a new partition table (content in flash_dev will be deleted)
err_msg="Error: repartitioning $flash_dev failed"
cmd="echo '2048' | sfdisk $flash_dev || (sleep 3; blockdev --rereadpt $flash_dev && fdisk -l $flash_dev | grep -q ${root_dev}.*Linux)"
cmd="echo '2048' | sfdisk -u S --force $flash_dev || (sleep 3; blockdev --rereadpt $flash_dev && fdisk -l $flash_dev | grep -q ${root_dev}.*Linux)"
run_cmd "$cmd" "$err_msg"
fi

Expand Down

0 comments on commit d9c7e94

Please sign in to comment.