Skip to content

eBPF-based security platform

testing: say why the guest stops when init left the images unmounted

Daniel Borkmann90a2e3c2cece
diff --git a/testing/vm/guest.sh b/testing/vm/guest.sh
index e4ed8f36..ef194ab6 100755
--- a/testing/vm/guest.sh
+++ b/testing/vm/guest.sh
@@ -449,8 +449,11 @@ if [[ "${TEST_VM_SUITE:-}" == register ]]; then
fi
(cd "$BUNDLE/verity" && sha256sum -c manifest)
-mountpoint -q /run/shirudo/runtime
-mountpoint -q /run/shirudo/config
+if ! mountpoint -q /run/shirudo/runtime ||
+ ! mountpoint -q /run/shirudo/config; then
+ log "the initrd did not mount the runtime and config images; its shirudo journal is above"
+ exit 1
+fi
install -m 0755 "$BUNDLE/verity/shirudo-runtime" /usr/local/bin/shirudo-runtime
SHIRUDO_BIN=/usr/local/bin/shirudo-runtime
for unit in "${TARGET_UNITS[@]}"; do