[systemd-devel] Problem bind-mounting /etc/hosts
Michal Sekletar
msekleta at redhat.com
Thu Jan 30 12:19:11 UTC 2025
On 29. 1. 2025, at 19:02, Thomas Köller <thomas at krokinole.de> wrote:
>
> I am creating a systemd service that contains the three lines below:
>
> TemporaryFileSystem = %E
> BindReadOnlyPaths = %E/hosts
> NetworkNamespacePath = /var/run/netns/vpnlink
>
> So the service runs in a network namespace of its own. The problem is that I cannot mount '/etc/hosts' into the tmpfs:
This is a bug, what you are trying to do worked in older versions, e.g. it still works with systemd-255.15-1.fc40.aarch64. Please file an issue on Github.
Michal
More information about the systemd-devel
mailing list