提交 436c0fdb 编写于 作者: S Simon Fels 提交者: GitHub

Merge pull request #28 from morphis/feature/disable-kmod-build-and-load

Disable module building and loading on non xenial systems
......@@ -81,13 +81,19 @@ start() {
# possible. See snapcraft.yaml for further details.
$SNAP/bin/anbox-bridge.sh start
kversion=`uname -r`
if [ ! -e $SNAP_COMMON/kernel-$kversion ]; then
build_kernel_modules $kversion
# Building and loading the necessary kernel modules is only possible
# on Ubuntu 16.04 (xenial)
if [ -e /var/lib/snapd/hostfs/etc/os-release ]; then
. /var/lib/snapd/hostfs/etc/os-release
if [ $UBUNTU_CODENAME = xenial ]; then
kversion=`uname -r`
if [ ! -e $SNAP_COMMON/kernel-$kversion ]; then
build_kernel_modules $kversion
fi
load_kernel_modules
fi
fi
load_kernel_modules
# Ensure FUSE support for user namespaces is enabled
echo Y > /sys/module/fuse/parameters/userns_mounts
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册