Containers: Set up /etc/resolv.conf

Systemd-nspawn is supposed to do this, but doesn't if any of the
--network-* flags are used.
This commit is contained in:
Eelco Dolstra 2014-08-15 04:04:28 +02:00
parent e6c00e60c3
commit e620be97fe

View file

@ -187,6 +187,8 @@ in
"/nix/var/nix/profiles/per-container/$INSTANCE" \
"/nix/var/nix/gcroots/per-container/$INSTANCE"
cp -f /etc/resolv.conf "$root/etc/resolv.conf"
if [ "$PRIVATE_NETWORK" = 1 ]; then
extraFlags+=" --network-veth"
fi