From eed87b3b1a4a386cdeb7baf0dec54d616f90ce88 Mon Sep 17 00:00:00 2001 From: pedro Date: Fri, 20 Sep 2024 11:58:58 -0300 Subject: [PATCH] deploy-workbench.sh: add FORCE var to recreate persistence partition --- deploy-workbench.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy-workbench.sh b/deploy-workbench.sh index 039f4ef..7a8a972 100755 --- a/deploy-workbench.sh +++ b/deploy-workbench.sh @@ -188,7 +188,7 @@ create_persistence_partition() { # persistent partition rw_img_name="workbench_vfat.img" rw_img_path="${ISO_PATH}/staging/${rw_img_name}" - if [ ! -f "${rw_img_path}" ] || [ "${DEBUG:-}" ]; then + if [ ! -f "${rw_img_path}" ] || [ "${DEBUG:-}" ] || [ "${FORCE:-}" ]; then ${SUDO} dd if=/dev/zero of="${rw_img_path}" bs=10M count=1 ${SUDO} mkfs.vfat "${rw_img_path}"