Skip to content

Commit 9056f86

Browse files
committed
fix: Support localhost images in start-bootc-vm.sh
Skip podman pull for localhost/ images and add /var/tmp mount to bootc-image-builder to prevent "no space left" errors. pre-commit.check-secrets: ENABLED
1 parent dbe6919 commit 9056f86

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/start-bootc-vm.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,14 @@ fi
9292
# ─────────────────────────────────────────────────────────────────────────────
9393
OUTPUT_DIR="${VM_DIR}/${VM_NAME}-output"
9494
mkdir -p "${OUTPUT_DIR}"
95+
mkdir -p "${VM_DIR}/bib-tmp"
9596

96-
echo "STEP-01 Pulling ${IMAGE}..."
97-
sudo podman pull "${IMAGE}"
97+
if [[ "${IMAGE}" == localhost/* ]]; then
98+
echo "STEP-01 Using local image ${IMAGE}..."
99+
else
100+
echo "STEP-01 Pulling ${IMAGE}..."
101+
sudo podman pull "${IMAGE}"
102+
fi
98103

99104
echo "STEP-02 Building qcow2 from ${IMAGE}..."
100105
sudo podman run \
@@ -103,6 +108,7 @@ sudo podman run \
103108
--pull=newer \
104109
--security-opt label=type:unconfined_t \
105110
-v "${OUTPUT_DIR}":/output \
111+
-v "${VM_DIR}/bib-tmp":/var/tmp \
106112
-v /var/lib/containers/storage:/var/lib/containers/storage \
107113
quay.io/centos-bootc/bootc-image-builder:latest \
108114
--type qcow2 \

0 commit comments

Comments
 (0)