From 2a64b0a91b34f37328e4d6138744eef979314d9a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 19 Apr 2014 12:34:59 +0200 Subject: Shut up warning about resolv.conf missing --- nixos/modules/system/boot/stage-2-init.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nixos/modules/system/boot/stage-2-init.sh') diff --git a/nixos/modules/system/boot/stage-2-init.sh b/nixos/modules/system/boot/stage-2-init.sh index cee9db091c14..57f85674c5b4 100644 --- a/nixos/modules/system/boot/stage-2-init.sh +++ b/nixos/modules/system/boot/stage-2-init.sh @@ -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 -- cgit 1.4.1