[systemd-devel] systemd 225: cannot override nspawn service

crequill at worldonline.fr crequill at worldonline.fr
Tue Sep 8 10:42:44 PDT 2015


Hi,

With systemd 225 on an archlinux, I cannot override a nspawn service anymore.
Example:

One container named ci-container, declared as this :
# ls -al /etc/systemd/system/machines.target.wants/
total 8
drwxr-xr-x 2 root root 4096  8 sept. 16:06 .
drwxr-xr-x 8 root root 4096  8 sept. 16:06 ..
lrwxrwxrwx 1 root root   47  8 sept. 16:06 systemd-nspawn at ci\x2dcontainer.service -> /usr/lib/systemd/system/systemd-nspawn at .service

With an override in /etc/systemd/system/systemd-nspawn at ci-container.service.d/
total 12
drwxr-xr-x 2 root root 4096  8 sept. 16:12 .
drwxr-xr-x 8 root root 4096  8 sept. 16:06 ..
-rw-r--r-- 1 root root  156  8 sept. 16:12 override.conf

Here is the file /etc/systemd/system/systemd-nspawn at ci-container.service.d/override.conf :
[Service]
ExecStart=
ExecStart=/usr/bin/systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-macvlan=enp3s1f0 --private-network --directory=/var/lib/container/%i

But when the container boot, there is no macvlan interface in it.
This was working well with systemd 218. Where is the problem ?

Many thanks for your reply.
Christophe


More information about the systemd-devel mailing list