diff options
author | Christian Hesse <mail@eworm.de> | 2016-11-09 17:13:28 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2016-11-10 14:23:33 +0100 |
commit | 01e1bb7f9c5adfb3afbb15f666c363b85ace9e31 (patch) | |
tree | 0f273f79ea9a7e3438bc3336ef18798695d3962f /src/resolve/resolved.c | |
parent | 604c941520bf27ad301e8126cbfd159b15573f27 (diff) |
resolved: unlink private resolv.conf on exit
This fixes the logic with systemd-nspawn which checks for private
resov.conf to decide whether or not to mount it into the container.
Diffstat (limited to 'src/resolve/resolved.c')
-rw-r--r-- | src/resolve/resolved.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resolve/resolved.c b/src/resolve/resolved.c index deb75f9ae5..8d5a5c6b79 100644 --- a/src/resolve/resolved.c +++ b/src/resolve/resolved.c @@ -112,6 +112,10 @@ int main(int argc, char *argv[]) { sd_event_get_exit_code(m->event, &r); finish: + /* systemd-nspawn checks for private resov.conf to decide whether + or not to mount it into the container. So just delete it. */ + (void) unlink(PRIVATE_RESOLV_CONF); + sd_notify(false, "STOPPING=1\n" "STATUS=Shutting down..."); |