Merge pull request #6591 from lseppala/master
Fix rebooting containers where resolv.conf is a symlink
commit6dc0938a3e3e967e279fce9072445e7d7d4b7d5b
authorJaka Hudoklin <jakahudoklin@gmail.com>
dateSat 28 Feb 2015, 12:19 (12 years ago)
parenteb4c8774106a3b
nixos/modules/virtualisation/containers.nix+1−1
@@ -212,7 +212,7 @@ in
212212 "/nix/var/nix/profiles/per-container/$INSTANCE" \
213213 "/nix/var/nix/gcroots/per-container/$INSTANCE"
214214
215− cp -f /etc/resolv.conf "$root/etc/resolv.conf"
215+ cp --remove-destination /etc/resolv.conf "$root/etc/resolv.conf"
216216
217217 if [ "$PRIVATE_NETWORK" = 1 ]; then
218218 extraFlags+=" --network-veth"