Skip to content

Commit c07dfad

Browse files
authored
Merge pull request #45 from Itxaka/sync_before_removing_arm_image
2 parents 2bd2a89 + 119c25f commit c07dfad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools-image/build-arm-image.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ else
216216
container_image=${CONTAINER_IMAGE:-quay.io/costoolkit/examples:odroid-c2-latest}
217217
fi
218218

219-
if [ -n "$cos_config"] && [ -e "$cos_config" ]; then
219+
if [ -n "$cos_config" ] && [ -e "$cos_config" ]; then
220220
source "$cos_config"
221221
fi
222222

@@ -442,6 +442,10 @@ sync
442442
echo ">> Performing $model specific bits.."
443443
/arm/boards/$model.sh ${DRIVE}
444444

445+
sync
446+
sleep 5
447+
sync
448+
445449
kpartx -dv $DRIVE
446450

447451
umount $DRIVE || true

0 commit comments

Comments
 (0)