mirror of
git://github.com/lxc/lxc
synced 2025-08-22 10:11:32 +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:
commit
30ebf0964d
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user