summary refs log tree commit diff
path: root/nixos/modules/system/boot/stage-2-init.sh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-19 12:34:59 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-19 12:34:59 +0200
commit2a64b0a91b34f37328e4d6138744eef979314d9a (patch)
tree3cfbe34994b6baef17494fd3e746a4b43d07d9ac /nixos/modules/system/boot/stage-2-init.sh
parentfa1a46a01cab1e6c0c594ced17dedf68b0cd39a7 (diff)
downloadnixlib-2a64b0a91b34f37328e4d6138744eef979314d9a.tar
nixlib-2a64b0a91b34f37328e4d6138744eef979314d9a.tar.gz
nixlib-2a64b0a91b34f37328e4d6138744eef979314d9a.tar.bz2
nixlib-2a64b0a91b34f37328e4d6138744eef979314d9a.tar.lz
nixlib-2a64b0a91b34f37328e4d6138744eef979314d9a.tar.xz
nixlib-2a64b0a91b34f37328e4d6138744eef979314d9a.tar.zst
nixlib-2a64b0a91b34f37328e4d6138744eef979314d9a.zip
Shut up warning about resolv.conf missing
Diffstat (limited to 'nixos/modules/system/boot/stage-2-init.sh')
-rw-r--r--nixos/modules/system/boot/stage-2-init.sh2
1 files changed, 2 insertions, 0 deletions
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