citadel/meta-citadel/recipes-connectivity/networkmanager/files/watch-resolvconf.service
Bruce Leidl bf78fa6fd2 watch /run/NetworkManager for creation of resolv.conf
Then copy it to persistent storage location which can be bind mounted
into images
2018-02-16 18:22:12 -05:00

8 lines
265 B
Desktop File

[Unit]
Description=Copy resolv.conf to /storage/citadel-state
ConditionPathExists=/run/NetworkManager/resolv.conf
ConditionPathExists=/storage/citadel-state
[Service]
Type=oneshot
ExecStart=/bin/cp /run/NetworkManager/resolv.conf /storage/citadel-state/resolv.conf