Merge pull request #6591 from lseppala/master

Fix rebooting containers where resolv.conf is a symlink
This commit is contained in:
Jaka Hudoklin 2015-02-28 12:19:01 +01:00
commit 6dc0938a3e

View File

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