1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

Shut up warning about resolv.conf missing

This commit is contained in:
Eelco Dolstra 2014-04-19 12:34:59 +02:00
parent fa1a46a01c
commit 2a64b0a91b

View file

@ -144,6 +144,8 @@ fi
# Use /etc/resolv.conf supplied by systemd-nspawn, if applicable.
if [ -n "@useHostResolvConf@" -a -e /etc/resolv.conf ]; then
cat /etc/resolv.conf | resolvconf -m 1000 -a host
else
touch /etc/resolv.conf
fi