Add some debug echos, trigger cleanup while mounts are present
Some checks failed
Build container image / Build and push image (push) Failing after 3m40s

This commit is contained in:
2025-12-01 18:36:49 +09:00
parent cab4c6cdd9
commit 8efc5f4192
2 changed files with 12 additions and 3 deletions

View File

@@ -28,9 +28,7 @@ RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache \ --mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \ --mount=type=cache,dst=/var/log \
--mount=type=tmpfs,dst=/tmp \ --mount=type=tmpfs,dst=/tmp \
/ctx/build.sh /ctx/build.sh && /ctx/cleanup.sh
RUN /ctx/cleanup.sh
### LINTING ### LINTING
## Verify final image and contents are correct. ## Verify final image and contents are correct.

View File

@@ -2,6 +2,17 @@
set -ouex pipefail set -ouex pipefail
echo "Let's see."
echo "/etc/passwd contents:"
cat /etc/passwd
echo "/usr/lib/passwd contents:"
cat /usr/lib/passwd
echo ""
echo "/etc/group contents:"
cat /etc/group
echo "/usr/lib/group contents:"
cat /usr/lib/group
## Handle files that rpm-ostree would normally remove ## Handle files that rpm-ostree would normally remove
## Borrowed from: https://github.com/hhd-dev/rechunk/blob/master/1_prune.sh#L33 ## Borrowed from: https://github.com/hhd-dev/rechunk/blob/master/1_prune.sh#L33
if [ -f /etc/passwd ]; then if [ -f /etc/passwd ]; then