From e6900006b0fa0671a85cf5a120827cc009c80cfb Mon Sep 17 00:00:00 2001 From: James Hartshorn Date: Wed, 6 Jul 2016 21:16:39 +0100 Subject: [PATCH] Added a delay before mkfs command to fix error "The file /dev/sda1 does not exist and no size was specified." --- adafruit-pi-externalroot-helper | 1 + 1 file changed, 1 insertion(+) diff --git a/adafruit-pi-externalroot-helper b/adafruit-pi-externalroot-helper index 59896da..fd332b3 100755 --- a/adafruit-pi-externalroot-helper +++ b/adafruit-pi-externalroot-helper @@ -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"