summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-08 13:33:14 +0100
committerErich Eckner <git@eckner.net>2018-05-16 16:39:44 +0200
commita02998cd8c547faec6547656e0973363cb0c4dda (patch)
tree9d20d4088d578d1ba166b43ba45a854141ca9ecd
parent96660aae7319a620cc6761ad09f0439cba9085d3 (diff)
downloaddevtools32-a02998cd8c547faec6547656e0973363cb0c4dda.tar.xz
mkarchroot.in: copy host's /etc/hosts into the chroot
-rw-r--r--mkarchroot.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/mkarchroot.in b/mkarchroot.in
index 52e363f..5983abc 100644
--- a/mkarchroot.in
+++ b/mkarchroot.in
@@ -87,6 +87,7 @@ pacstrap -GMcd ${pac_conf:+-C "$pac_conf"} "$working_dir" \
"${cache_dirs[@]/#/--cachedir=}" "$@" || die 'Failed to install all packages'
printf '%s.UTF-8 UTF-8\n' en_US de_DE > "$working_dir/etc/locale.gen"
+cat '/etc/hosts' > "$working_dir/etc/hosts"
echo 'LANG=en_US.UTF-8' > "$working_dir/etc/locale.conf"
echo "$CHROOT_VERSION" > "$working_dir/.arch-chroot"