Merge pull request #6591 from lseppala/master
Fix rebooting containers where resolv.conf is a symlink
This commit is contained in:
commit
6dc0938a3e
|
@ -212,7 +212,7 @@ in
|
||||||
"/nix/var/nix/profiles/per-container/$INSTANCE" \
|
"/nix/var/nix/profiles/per-container/$INSTANCE" \
|
||||||
"/nix/var/nix/gcroots/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
|
if [ "$PRIVATE_NETWORK" = 1 ]; then
|
||||||
extraFlags+=" --network-veth"
|
extraFlags+=" --network-veth"
|
||||||
|
|
Loading…
Reference in New Issue