Load kernel modules for binder and ashmem on startup

This commit is contained in:
Simon Fels 2016-09-15 12:55:33 +02:00
commit 4a0927c718

View file

@ -16,6 +16,13 @@ if [ ! -e $ROOTFS_PATH ] || [ "$ROOTFS_VERSION" != "$(cat $ROOTFS_PATH/.version)
echo $ROOTFS_VERSION > $ROOTFS_PATH/.version
fi
# Load binder and ashmem kernel drivers. This will just horrible break
# if kernel versions are changing ...
insmod $SNAP/binder_linux.ko || true
chmod 666 /dev/binder
insmod $SNAP/ashmem_linux.ko || true
chmod 666 /dev/ashmem
# Make sure our setup path for the container rootfs
# is present as lxc is statically configured for
# this path.