From 4a0927c7187bc63ce9894f66e4d02a3eef3a6327 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Thu, 15 Sep 2016 12:55:33 +0200 Subject: [PATCH] Load kernel modules for binder and ashmem on startup --- scripts/container-manager.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/container-manager.sh b/scripts/container-manager.sh index 2fe1439..6798363 100755 --- a/scripts/container-manager.sh +++ b/scripts/container-manager.sh @@ -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.