From c0513a03ba9f0b5a4fe8c887cd63dfae4afac623 Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Sun, 12 Aug 2018 17:14:54 +0200 Subject: community/lxcfs: Modprobe modules instead of failing when absent Previously, lxcfs failed when the kernel modules were not listed the lsmod output. Built-in kernel modules never show up in lsmod, thus the service could not be properly started on such systems. Fixes #9214. --- community/lxcfs/lxcfs.initd | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'community/lxcfs/lxcfs.initd') diff --git a/community/lxcfs/lxcfs.initd b/community/lxcfs/lxcfs.initd index 1a6e9c9759..557326e7a2 100644 --- a/community/lxcfs/lxcfs.initd +++ b/community/lxcfs/lxcfs.initd @@ -19,16 +19,8 @@ depend() { } start_pre() { - local module= checkpath --directory ${VARDIR} - for module in fuse autofs4; do - if ! $(lsmod | grep -q ^$module); then - eerror "Enable module: $module" - eerror "modprobe $module" - eerror "echo $module >> /etc/modules" - eend 1 - fi - done + modprobe fuse autofs4 } find_perms() { -- cgit v1.2.3