Skip to content

Commit

Permalink
Adjust the image size
Browse files Browse the repository at this point in the history
  • Loading branch information
ailispaw committed May 13, 2022
1 parent a49473b commit 38fda6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/post_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ mount /dev/loop0 ${ISO}

SIZE=$(du -s ${ISO} | awk '{print $1}')

dd if=/dev/zero of=${IMAGE} bs=1024 count=$((${SIZE}+126+${SIZE}%2))
dd if=/dev/zero of=${IMAGE} bs=1024 count=$((${SIZE}+122+${SIZE}%2))
losetup /dev/loop1 ${IMAGE}
(echo c; echo n; echo p; echo 1; echo; echo; echo t; echo 4; echo a; echo w;) | fdisk /dev/loop1 || true

Expand Down

0 comments on commit 38fda6f

Please sign in to comment.