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>2022-09-30 08:43:35 +0200
commit24f1e30a13368d384f11172c920bd80c958b451a (patch)
tree2842ccc20478708088cabbc89cecbe4d58664edd
parenteaa5abe45d803b84074c7e6c278faf3ae12aca0b (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 d199bed..2958710 100644
--- a/mkarchroot.in
+++ b/mkarchroot.in
@@ -85,6 +85,7 @@ unshare --mount 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' C en_US de_DE > "$working_dir/etc/locale.gen"
+cat '/etc/hosts' > "$working_dir/etc/hosts"
echo 'LANG=C.UTF-8' > "$working_dir/etc/locale.conf"
echo "$CHROOT_VERSION" > "$working_dir/.arch-chroot"