Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/mkarchroot.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-08 13:33:14 +0100
committerErich Eckner <git@eckner.net>2018-05-31 16:09:42 +0200
commit7c1d9626756b9c8d7018a0d5e99a4a8b913abe9b (patch)
tree2bd65678928d220b6eb86d520c4eda8386404acb /mkarchroot.in
parent450c3384d4289e646e3dc82dbeedce87b5b79a58 (diff)
mkarchroot.in: copy host's /etc/hosts into the chroot
Diffstat (limited to 'mkarchroot.in')
-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"