Skip to content

Commit 4c0eff1

Browse files
committed
Debug
1 parent b530f29 commit 4c0eff1

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/scripts/build_image.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,14 @@ def _build_slurm_script(
7070
"{remote_build_dir}"
7171
7272
echo "=== Converting to sqsh ==="
73-
enroot import -o "${{TEMP_SQSH}}" "podman://${{IMAGE_TAG}}"
73+
# Run enroot from the output directory so its internal temp file is on the
74+
# same filesystem as the output, avoiding a cross-filesystem rename (EXDEV).
75+
mkdir -p "$(dirname "${{TEMP_SQSH}}")"
76+
(cd "$(dirname "${{TEMP_SQSH}}")" && enroot import -o "${{TEMP_SQSH}}" "podman://${{IMAGE_TAG}}")
77+
if [ ! -s "${{TEMP_SQSH}}" ]; then
78+
echo "ERROR: enroot import failed — sqsh not created"
79+
exit 1
80+
fi
7481
7582
echo "=== Saving to capstor ==="
7683
mv "${{TEMP_SQSH}}" "${{FINAL_SQSH}}"

0 commit comments

Comments
 (0)