Compare commits

..

2 commits

Author SHA1 Message Date
pedro 8fc62ba8da deploy-workbench.sh: bugfix wrong check 2024-09-20 17:03:50 -03:00
pedro f1de55e0b3 deploy-workbench: increase persistence partition
allow more snapshots on the persistence partition

from 10 to 100 MiB
2024-09-20 17:03:30 -03:00

View file

@ -189,7 +189,8 @@ create_persistence_partition() {
rw_img_name="workbench_vfat.img"
rw_img_path="${ISO_PATH}/staging/${rw_img_name}"
if [ ! -f "${rw_img_path}" ] || [ "${DEBUG:-}" ] || [ "${FORCE:-}" ]; then
${SUDO} dd if=/dev/zero of="${rw_img_path}" bs=10M count=1
persistent_volume_size=100
${SUDO} dd if=/dev/zero of="${rw_img_path}" bs=1M count=${persistent_volume_size}
${SUDO} mkfs.vfat "${rw_img_path}"
# generate structure on persistent partition
@ -381,7 +382,7 @@ prepare_chroot_env() {
if [ -z "${VERSION_CODENAME:-}" ]; then
. /etc/os-release
echo "TAKING OS-RELEASE FILE"
if [ "${ID}" = "debian" ]; then
if [ ! "${ID}" = "debian" ]; then
echo "ERROR: ubuntu detected, then you are enforced to specify debian variant"
echo " use for example \`VERSION_CODENAME='bookworm'\` or similar"
exit 1