From 5894850238398517db8846cbbc31837475fdbeb5 Mon Sep 17 00:00:00 2001 From: Krzysztof Molon Date: Thu, 16 Jul 2026 10:21:27 +0200 Subject: [PATCH 1/2] test: [DO-NOT-MERGE] debug bind mount environment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Diagnostic test to dump host and bst mount state when bind-mounting /dev/shm onto /mnt. This is to investigate why the mountinfo-based bind mount test fails in some CI environments (barney) where /dev/shm may not be a separate tmpfs mount. Dumps: /proc/self/mountinfo, /proc/mounts, /dev/shm stat, findmnt, namespace links, and capabilities — both on host and inside bst. --- test/debug-bind-mount.t | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 test/debug-bind-mount.t diff --git a/test/debug-bind-mount.t b/test/debug-bind-mount.t new file mode 100755 index 0000000..c0be787 --- /dev/null +++ b/test/debug-bind-mount.t @@ -0,0 +1,20 @@ +#!/usr/bin/env cram.sh + +[DO-NOT-MERGE] Debug bind mount environment + +Host /dev/shm state + + $ findmnt /dev/shm 2>&1 || true + $ grep '/dev/shm\|/mnt' /proc/self/mountinfo || echo "no /dev/shm or /mnt in host mountinfo" + +Inside bst with bind mount: mountinfo lines for /dev/shm and /mnt + + $ bst --mount /dev/shm,/mnt,none,bind sh -c 'grep "/dev/shm\|/mnt" /proc/self/mountinfo' + +Inside bst with bind mount: /proc/mounts lines for /dev/shm and /mnt + + $ bst --mount /dev/shm,/mnt,none,bind sh -c 'grep "/dev/shm\|/mnt" /proc/mounts' + +The actual test assertion (should print OK if device IDs match) + + $ bst --mount /dev/shm,/mnt,none,bind awk '/\/dev\/shm/ { shm=$3 } /\/mnt/ { mnt=$3 } END { printf "shm=%s mnt=%s => ", shm, mnt; if (shm == mnt) { print "OK" } else { print "KO" } }' /proc/self/mountinfo From 0085ca80d6c247d845cc39e37a80893925691c63 Mon Sep 17 00:00:00 2001 From: Krzysztof Molon Date: Thu, 16 Jul 2026 11:24:43 +0200 Subject: [PATCH 2/2] trigger rebuild