We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b530f29 commit 4c0eff1Copy full SHA for 4c0eff1
1 file changed
.github/scripts/build_image.py
@@ -70,7 +70,14 @@ def _build_slurm_script(
70
"{remote_build_dir}"
71
72
echo "=== Converting to sqsh ==="
73
-enroot import -o "${{TEMP_SQSH}}" "podman://${{IMAGE_TAG}}"
+# 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
81
82
echo "=== Saving to capstor ==="
83
mv "${{TEMP_SQSH}}" "${{FINAL_SQSH}}"
0 commit comments