Skip to content

Commit 9ebdf2f

Browse files
committed
Add sleep 1 before mkfs to fix "Device size reported to be zero"
Resolves #45
1 parent d36bcd9 commit 9ebdf2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

alpine-make-vm-image

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,8 @@ fi
554554
# useless for NBD image and prints confusing error).
555555
[ "$ROOTFS" = ext4 ] && mkfs_args='-O ^64bit -E nodiscard' || mkfs_args='-K'
556556

557+
sleep 1 # see #45
558+
557559
mkfs.$ROOTFS -L root $mkfs_args "$root_dev"
558560

559561
root_uuid=$(blk_uuid "$root_dev")

0 commit comments

Comments
 (0)