diff options
author | Erich Eckner <git@eckner.net> | 2018-01-08 13:33:14 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-12-08 12:57:22 +0100 |
commit | 4b5a47587c1d2d701ed99f59e0987fb306be7dbd (patch) | |
tree | 7d5b0d5847c27407e093a08cc3bf4d518a7da534 | |
parent | e11e5488dffe28f99151b4e30e3136c1665ef9cb (diff) | |
download | devtools-4b5a47587c1d2d701ed99f59e0987fb306be7dbd.tar.xz |
mkarchroot.in: copy host's /etc/hosts into the chroot
-rw-r--r-- | src/mkarchroot.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mkarchroot.in b/src/mkarchroot.in index 45ad19c..6101425 100644 --- a/src/mkarchroot.in +++ b/src/mkarchroot.in @@ -85,6 +85,7 @@ unshare --mount pacstrap -${umode}Mc ${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" |