aboutsummaryrefslogtreecommitdiffstats
path: root/community/lxcfs/lxcfs.initd
diff options
context:
space:
mode:
authorAin <41307858+nero@users.noreply.github.com>2018-08-12 17:14:54 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-08-30 14:58:34 +0000
commitc0513a03ba9f0b5a4fe8c887cd63dfae4afac623 (patch)
tree480ffad59ac97b511e05c9f3dc83154bca164b86 /community/lxcfs/lxcfs.initd
parent567e1400bf01f8629bf9bd6d73afbe1b586e4dd8 (diff)
downloadaports-c0513a03ba9f0b5a4fe8c887cd63dfae4afac623.tar.bz2
aports-c0513a03ba9f0b5a4fe8c887cd63dfae4afac623.tar.xz
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.
Diffstat (limited to 'community/lxcfs/lxcfs.initd')
-rw-r--r--community/lxcfs/lxcfs.initd10
1 files changed, 1 insertions, 9 deletions
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() {