提交 383511b3 编写于 作者: S Simon Fels

Disable module building and loading on non xenial systems

上级 dfe91341
......@@ -81,12 +81,18 @@ start() {
# possible. See snapcraft.yaml for further details.
$SNAP/bin/anbox-bridge.sh start
# 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
# 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.
先完成此消息的编辑!
想要评论请 注册