[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) <qle@odoo.com>
This commit is contained in:
lejeune quentin
2019-12-04 14:20:02 +00:00
parent c593c468b1
commit f0b445d24c
@@ -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}"