chiark / gitweb /
nspawn: always copy /etc/resolv.conf rather than bind mount
authorLennart Poettering <lennart@poettering.net>
Wed, 2 Oct 2013 17:40:43 +0000 (19:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 2 Oct 2013 17:45:12 +0000 (19:45 +0200)
commit51045322c4c19638ba5588c722238220d096ca43
treeba85bc3913e55440a98f964a88d28950e76a61bd
parent69c2b6be8fc607412a13cd0ea03a629b4965c816
nspawn: always copy /etc/resolv.conf rather than bind mount

We were already creating the file if it was missing, and this way
containers can reconfigure the file without running into problems.

This also makes resolv.conf handling more alike to handling of
/etc/localtime, which is also not a bind mount.
src/nspawn/nspawn.c
src/shared/util.c
src/shared/util.h