]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tests/lxc-test-snapdeps: try to load overlay kernel module
authorAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Tue, 29 Jul 2025 09:58:53 +0000 (11:58 +0200)
committerAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Tue, 29 Jul 2025 09:58:53 +0000 (11:58 +0200)
We don't want test to be skipped just because overlay module
isn't loaded yet.

Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
src/tests/lxc-test-snapdeps

index 5e6ea998c8d8c9d3cc8a2a93a17c6f53ee6038d2..3219b6815283e9d92a224d5a8f18057d925108bf 100755 (executable)
@@ -14,6 +14,7 @@
 
 set -e
 
+modprobe -v overlay || true
 if ! grep -q overlay /proc/filesystems; then
        echo "Not running this test as overlay is not available"
        exit 0