Compare commits
2 commits
d53d8eb4d0
...
8fc62ba8da
Author | SHA1 | Date | |
---|---|---|---|
8fc62ba8da | |||
f1de55e0b3 |
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue