Added a delay before mkfs command to fix error "The file /dev/sda1 does not exist and no size was specified."

This commit is contained in:
James Hartshorn 2016-07-06 21:16:39 +01:00
parent 70b9ef1b09
commit e6900006b0

View file

@ -104,6 +104,7 @@ info "fs create" "Creating ${target_partition}"
parted --script --align optimal "${target_drive}" mkpart primary ext4 0% 100%
info "fs create" "Creating ext4 filesystem on ${target_partition}"
sleep 5
mkfs -t ext4 -L rootfs "${target_partition}"
info "fs id" "Getting UUID for target partition"