summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-09-01 22:51:36 +0200
committerKarel Kočí <cynerd@email.cz>2018-09-01 22:52:41 +0200
commit1906fb8e4eacd41f41915613b87606a789e21b0b (patch)
tree3fa4c374090449d481ae5b34b34bc83251691529 /scripts
parentc64cf37fbd633a610b9be03de08593939546b01d (diff)
downloadlaminar-cnf-1906fb8e4eacd41f41915613b87606a789e21b0b.tar.gz
laminar-cnf-1906fb8e4eacd41f41915613b87606a789e21b0b.tar.bz2
laminar-cnf-1906fb8e4eacd41f41915613b87606a789e21b0b.zip
uchroot: try to fix network setup when hosts are used
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/uchroot1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/uchroot b/scripts/uchroot
index e036ce2..6aa76b2 100755
--- a/scripts/uchroot
+++ b/scripts/uchroot
@@ -27,6 +27,7 @@ mount -t proc none "$ROOT/proc"
mount --rbind /dev "$ROOT/dev"
mount --rbind /sys "$ROOT/sys"
cp -f /etc/resolv.conf "$ROOT/etc/resolv.conf"
+cp -f /etc/hosts "$ROOT/etc/hosts"
if [ $# -lt 1 ]; then
set "/bin/sh"