Load kernel modules for binder and ashmem on startup
This commit is contained in:
parent
cd52c87639
commit
4a0927c718
1 changed files with 7 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue