diff --git a/alpine-install-on-disk.sh b/alpine-install-on-disk.sh index 2e1c5e2..ddaf511 100755 --- a/alpine-install-on-disk.sh +++ b/alpine-install-on-disk.sh @@ -32,6 +32,10 @@ run_root () { wget -c "$rootfs_url" -O "$IMAGE" +# Clean the first 2M - getting rid of old things +# in the gap and also the paritition table +dd if=/dev/zero of=${DISK} bs=1M count=2 + # Partition disk with 1 Linux partition sudo sfdisk "$DISK" <