summary refs log tree commit diff
path: root/nixos/modules/installer
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-05-21 11:20:33 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-05-21 11:20:33 +0200
commite135e6b35b4ac75cfee7c561b2ea864967568f81 (patch)
tree3b7004b97febd6614223b4f8ba62c3c5d0099efa /nixos/modules/installer
parent35925d7a768a951809a6bb4aa0004f3fcb0139ed (diff)
downloadnixlib-e135e6b35b4ac75cfee7c561b2ea864967568f81.tar
nixlib-e135e6b35b4ac75cfee7c561b2ea864967568f81.tar.gz
nixlib-e135e6b35b4ac75cfee7c561b2ea864967568f81.tar.bz2
nixlib-e135e6b35b4ac75cfee7c561b2ea864967568f81.tar.lz
nixlib-e135e6b35b4ac75cfee7c561b2ea864967568f81.tar.xz
nixlib-e135e6b35b4ac75cfee7c561b2ea864967568f81.tar.zst
nixlib-e135e6b35b4ac75cfee7c561b2ea864967568f81.zip
nixos-install: Copy /etc/hosts
http://hydra.nixos.org/build/11130069
Diffstat (limited to 'nixos/modules/installer')
-rw-r--r--nixos/modules/installer/tools/nixos-install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/installer/tools/nixos-install.sh b/nixos/modules/installer/tools/nixos-install.sh
index 3311e4c8e9aa..ec48394435da 100644
--- a/nixos/modules/installer/tools/nixos-install.sh
+++ b/nixos/modules/installer/tools/nixos-install.sh
@@ -80,7 +80,7 @@ mount -t tmpfs -o "mode=0755" none $mountPoint/run
 mount -t tmpfs -o "mode=0755" none $mountPoint/var/setuid-wrappers
 rm -rf $mountPoint/var/run
 ln -s /run $mountPoint/var/run
-cp -f /etc/resolv.conf $mountPoint/etc/resolv.conf
+cp -f /etc/resolv.conf /etc/hosts $mountPoint/etc/
 
 
 if [ -n "$runChroot" ]; then