2
0
mirror of git://github.com/lxc/lxc synced 2025-08-22 04:29:21 +00:00

Merge pull request #4091 from JamiKettunen/non-modular-kernels

lxc-checkconfig: Only check probed modules if /proc/modules exists
This commit is contained in:
Stéphane Graber 2022-03-09 17:14:05 +01:00 committed by GitHub
commit 30ebf0964d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,9 @@ has_cgroup_ns() {
}
is_probed() {
if [ ! -f /proc/modules ]; then
return
fi
lsmod | grep $1 > /dev/null
if [ $? -eq 0 ]; then
echo -n ", loaded"