Skip to content

Commit d9c7e94

Browse files
authored
Merge pull request #51 from Azure/201807
[devices]: Fix arista-convertfs for aligning flash via sfdisk in Jess…
2 parents 315b976 + 6bf252f commit d9c7e94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/initramfs-tools/arista-convertfs.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ umount "$root_mnt"
172172
if [ $(echo -n "$root_dev" | tail -c 1) == "1" ]; then
173173
# Create a new partition table (content in flash_dev will be deleted)
174174
err_msg="Error: repartitioning $flash_dev failed"
175-
cmd="echo '2048' | sfdisk $flash_dev || (sleep 3; blockdev --rereadpt $flash_dev && fdisk -l $flash_dev | grep -q ${root_dev}.*Linux)"
175+
cmd="echo '2048' | sfdisk -u S --force $flash_dev || (sleep 3; blockdev --rereadpt $flash_dev && fdisk -l $flash_dev | grep -q ${root_dev}.*Linux)"
176176
run_cmd "$cmd" "$err_msg"
177177
fi
178178

0 commit comments

Comments
 (0)