]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-13-NSPAWN: Skip on virtiofs
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 29 Apr 2024 11:22:13 +0000 (13:22 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 30 Apr 2024 20:10:05 +0000 (22:10 +0200)
The rootfs only has 64K UIDs available when booting with virtiofs,
whereas the nspawn tests want to use user namespace which require
more than 64K UIDs.

test/units/testsuite-13.sh

index 9c2a033aa98d17ce1517bf42cf30c31c187ab0ea..dd7f2746316e8c0e96a91c87ebf5fa1fbccda8e8 100755 (executable)
@@ -3,6 +3,13 @@
 set -eux
 set -o pipefail
 
+FSTYPE="$(stat --file-system --format "%T" /)"
+
+if [[ "$FSTYPE" == "fuseblk" ]]; then
+    echo "Root filesystem is virtiofs, skipping"
+    exit 77
+fi
+
 # shellcheck source=test/units/test-control.sh
 . "$(dirname "$0")"/test-control.sh