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:
parent
e6c00e60c3
commit
e620be97fe
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue