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.
This commit is contained in:
@@ -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...");
|
||||
|
||||
Reference in New Issue
Block a user