Merge pull request #45 from Itxaka/sync_before_removing_arm_image

This commit is contained in:
Itxaka 2023-04-27 13:34:45 +02:00 committed by GitHub
commit c07dfad92f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -216,7 +216,7 @@ else
container_image=${CONTAINER_IMAGE:-quay.io/costoolkit/examples:odroid-c2-latest}
fi
if [ -n "$cos_config"] && [ -e "$cos_config" ]; then
if [ -n "$cos_config" ] && [ -e "$cos_config" ]; then
source "$cos_config"
fi
@ -442,6 +442,10 @@ sync
echo ">> Performing $model specific bits.."
/arm/boards/$model.sh ${DRIVE}
sync
sleep 5
sync
kpartx -dv $DRIVE
umount $DRIVE || true