We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a84813 commit 2b360c3Copy full SHA for 2b360c3
files/initramfs-tools/arista-convertfs.j2
@@ -170,7 +170,7 @@ umount "$root_mnt"
170
171
# Create a new partition table (content in flash_dev will be deleted)
172
err_msg="Error: repartitioning $flash_dev failed"
173
-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)"
174
run_cmd "$cmd" "$err_msg"
175
176
sleep 5
0 commit comments