deploy-workbench.sh: add FORCE var

to recreate persistence partition
This commit is contained in:
pedro 2024-09-20 11:58:58 -03:00
parent 50e8cb5f6b
commit eed87b3b1a
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ create_persistence_partition() {
# persistent partition # persistent partition
rw_img_name="workbench_vfat.img" rw_img_name="workbench_vfat.img"
rw_img_path="${ISO_PATH}/staging/${rw_img_name}" 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} dd if=/dev/zero of="${rw_img_path}" bs=10M count=1
${SUDO} mkfs.vfat "${rw_img_path}" ${SUDO} mkfs.vfat "${rw_img_path}"