[systemd-devel] systemd-networkd: reload network unit from a non-root partition using a mount unit

Matthias Klein matthias.klein at linux.com
Wed Nov 26 12:40:09 PST 2014


Hello,

I try to configure systemd 216 to boot an embedded board where the 
network configuration stays on a different partition.
The boot should look like:
- mount a partition called "config" using a mount unit
- now systemd should reload its configuration to get two network units 
which resides on the "config" partition [the path /etc/systemd/network/ 
is linked to that partition]
- on the root file system I have a wpa_supplicant@ unit for the wlan0 
device [the wpa_supplicant.conf file for that device also resides on the 
"config" partition]


My problem is that I can't get systemd to succesfully reload its 
configuration for my network units after mounting the "config" partition.
I tried to to add a ExecStart systemctl daemon-reload inside the 
wpa_supplicant rule.

If I have the network unit in my (read-only) root filesystem everything 
works fine. (No reloading is needed here ...)


Is it possible to place the network untis onto a partition which is 
mounted by systemd?


Best regards,
Matthias

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20141126/5cd8cb3c/attachment.html>


More information about the systemd-devel mailing list