From d050b07784cafbfc9a21e5a1bea730438c2ec542 Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Tue, 20 Dec 2016 16:12:48 +0100 Subject: [PATCH] Fix tct/minnow_prepare_flash_conf.sh Wait fixes a problem of a missing partition. On 16.04, with systemd, tune2fs failed if invoked directly after bmap. Origin of the problem remains unknown. Change-Id: I0f4fdc664916db8db7afb29411b2c572d3d68798 Signed-off-by: Aleksander Mistewicz --- tct/minnow_prepare_flash_conf.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tct/minnow_prepare_flash_conf.sh b/tct/minnow_prepare_flash_conf.sh index da3a718..2db1bc2 100755 --- a/tct/minnow_prepare_flash_conf.sh +++ b/tct/minnow_prepare_flash_conf.sh @@ -54,6 +54,9 @@ sudo timeout "${BMAP_TIME_LIMIT}" bmaptool -q copy "${IMAGE}" "${DEV_SDCARD}" RET=$? echo "Bmaptool: finish" +# wait a little for OS to notice the change and partitions to appear +sleep "${INIT_SLEEP}" + change_uuid "${UUID_FILE}" "${DEV_SDCARD}" if [ $RET -ne 0 ]; then die "Bmaptool exited with an error" "$RET" -- 2.7.4