# Copyright (c) 2018 - 2020 Jolla Ltd.
#
# License: Jolla Proprietary

lxc.rootfs.path = loop:/opt/alien/system.img
lxc.uts.name = aliendalvik
lxc.arch = aarch64

lxc.init.cmd = /init

lxc.mount.auto = cgroup:ro sys:ro

# necessary dev nodes (renamed)
lxc.mount.entry = /dev/puddlejumper dev/binder none bind,create=file 0 0
lxc.mount.entry = /dev/vndpuddlejumper dev/vndbinder none bind,create=file 0 0

# necessary device nodes (same name)
lxc.mount.entry = /dev/ashmem dev/ashmem none bind,create=file 0 0

lxc.mount.entry = /dev/fuse dev/fuse none bind,create=file 0 0
lxc.mount.entry = /dev/ion dev/ion none bind,create=file,optional 0 0

# Mount /data - always /home/.android now
lxc.mount.entry = tmpfs mnt tmpfs mode=0755,uid=0,gid=1000

# useful device properties from the host
lxc.mount.entry = /tmp/aliendalvik/generated_props system/vendor/alien.prop none bind,create=file 0 0

# Xkb - required for on screen keyboard
lxc.mount.entry = /usr/share/X11/xkb usr/share/X11/xkb none bind 0 0

# necessary device nodes for adb
lxc.mount.entry = none dev/pts devpts defaults,mode=644,ptmxmode=666 0 0
lxc.mount.entry = /dev/uhid dev/uhid none bind,create=file,defaults,optional 0 0

lxc.include = /var/lib/lxc/aliendalvik/bsp_config
lxc.include = /var/lib/lxc/aliendalvik/extra_config

