Fix rebooting containers where resolv.conf is a symlink

This commit is contained in:
Lane Seppala 2015-02-27 10:27:18 -07:00
parent b6f26346e2
commit 4106a3b74e

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"