diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-04-17 14:13:09 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-04-18 19:38:28 -0400 |
commit | f333fbb1efc2f32527f78cbdb003d59bae01aa07 (patch) | |
tree | 72f6dc764114fbdc8a65f7fc3593daa5a96db581 /src/shared/unit-name.h | |
parent | 7c04ad2da1cf08ebf53b9aa9671c8c1dc9577135 (diff) |
nspawn: create empty /etc/resolv.conf if necessary
nspawn will overmount resolv.conf if it exists. Since e.g.
default install with yum doesn't create /etc/resolv.conf,
a container created with yum will not have network. This
seems undesirable, and since we overmount the file anyway,
let's create it too.
Also, mounting a read-write /etc/resolv.conf in the container
is treated as a failure, since it makes it possible to
modify hosts /etc/resolv.conf from inside the container.
Diffstat (limited to 'src/shared/unit-name.h')
0 files changed, 0 insertions, 0 deletions