From: Yu Watanabe Date: Tue, 25 Nov 2025 18:13:15 +0000 (+0900) Subject: TEST-13-NSPAWN: the host kernel may not support /proc/kcore X-Git-Tag: v259-rc3~29^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45014d97dde3f1497ce8141f15f6a98cd46edef2;p=thirdparty%2Fsystemd.git TEST-13-NSPAWN: the host kernel may not support /proc/kcore --- diff --git a/test/units/TEST-13-NSPAWN.nspawn-oci.sh b/test/units/TEST-13-NSPAWN.nspawn-oci.sh index 877482c0f1f..1fd2a5ad767 100755 --- a/test/units/TEST-13-NSPAWN.nspawn-oci.sh +++ b/test/units/TEST-13-NSPAWN.nspawn-oci.sh @@ -39,6 +39,12 @@ create_dummy_container "$OCI/rootfs" mkdir -p "$OCI/rootfs/opt/var" mkdir -p "$OCI/rootfs/opt/readonly" +if [[ -e /proc/kcore ]]; then + HAVE_PROC_KCORE=1 +else + HAVE_PROC_KCORE=0 +fi + # Let's start with a simple config cat >"$OCI/config.json" <