Ok, found out how it works (@peterleinchen interested??).
Start app-support, ps auxw|grep lxc shows you –rcfile=/tmp/appsupport/aliendalvik/config, there in you have lxc.include = /tmp/appsupport/aliendalvik/10-bsp_config.
Hunting the source of this, since this is volatile. systemctl status aliendalvik gives you the script /usr/lib/systemd/system/aliendalvik.service, there in Requires=aliendalvik-prepare.service and there in …"$CONTAINER_CONFIG_PATH/10-bsp_config". Bingo!
Added thereafter:
echo “lxc.mount.entry = /etc/hosts system/etc/hosts none bind,create=file 0 0” >> “$CONTAINER_CONFIG_PATH/10-bsp_config” and restat app-support.
Verify:
devel-su appsupport-attach cat /etc/hosts
(this changed in 4.5, see Testing Advice | Sailfish OS Documentation )
Warning: have no idea if this interferes with system updates!
5 Likes