Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-08 13:33:14 +0100
committerErich Eckner <git@eckner.net>2020-04-08 08:45:23 +0200
commit0b4ab68138816ebb6d7f723c9f55f5a6e5011f3c (patch)
tree8669803a18592bce1cf6741b2ae6d31a773f1d90
parent45056af2e5a6838415ecbd3593ef6f0ae2224fdb (diff)
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 37f6802..fc5ded6 100644
--- a/mkarchroot.in
+++ b/mkarchroot.in
@@ -94,6 +94,7 @@ pacstrap -${umode}Mcd ${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"