From f0b445d24c5280579ec43589c2ad5b31d8617624 Mon Sep 17 00:00:00 2001 From: lejeune quentin Date: Wed, 4 Dec 2019 10:46:30 +0000 Subject: [PATCH] [FIX] point_of_sale: Cleanup computer after build of IoT Box We must delete the folder "MOUNT_POINT" before the "zerofree" closes odoo/odoo#41399 X-original-commit: 4dffb76fab1a44eb79b2770100eef000ef23a9e5 Signed-off-by: Quentin Lejeune (qle) --- addons/point_of_sale/tools/posbox/posbox_create_image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/tools/posbox/posbox_create_image.sh b/addons/point_of_sale/tools/posbox/posbox_create_image.sh index d8b3a66ba90..3dd24c46c4d 100755 --- a/addons/point_of_sale/tools/posbox/posbox_create_image.sh +++ b/addons/point_of_sale/tools/posbox/posbox_create_image.sh @@ -125,9 +125,9 @@ done # cleanup umount -f "${MOUNT_POINT}"/boot/ umount -f "${MOUNT_POINT}" +rm -rf "${MOUNT_POINT}" echo "Running zerofree..." zerofree -v "${LOOP_MAPPER_PATH}" || true kpartx -d "${LOOP_PATH}" -rm -rf "${MOUNT_POINT}"