diff --git a/tests/gha-run-k8s-common.sh b/tests/gha-run-k8s-common.sh index c0718012eb..57d61ba3b5 100644 --- a/tests/gha-run-k8s-common.sh +++ b/tests/gha-run-k8s-common.sh @@ -622,6 +622,11 @@ function deploy_k8s() { sudo modprobe dm-verity # Verify modules loaded successfully + if [[ ! -d /sys/module/dm_mod ]]; then + >&2 echo "ERROR: dm_mod kernel module not available after modprobe" + >&2 echo "dm-verity support requires dm-mod and dm-verity kernel modules" + exit 1 + fi if [[ ! -d /sys/module/dm_verity ]]; then >&2 echo "ERROR: dm_verity kernel module not available after modprobe" >&2 echo "dm-verity support requires dm-mod and dm-verity kernel modules"