From c2bbcbed64e70b1e92c697be2f17a050a8341f87 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 4 Dec 2018 18:06:44 -0500 Subject: mkarchroot: don't create a broken chroot by default It's incorrect to make pacman completely useless inside the chroot by starting off with no pacman keyring. Assuming that the only consumers of a new chroot will be arch-nspawn (which copies over the hostconf) is bad design, and furthermore makes it impossible to fix other issues in arch-nspawn itself. Signed-off-by: Eli Schwartz Signed-off-by: Levente Polyak --- mkarchroot.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkarchroot.in b/mkarchroot.in index 9d23b60..7d97318 100644 --- a/mkarchroot.in +++ b/mkarchroot.in @@ -86,7 +86,7 @@ while read -r varname; do _env+=("$varname=${!varname}") done < <(declare -x | sed -r 's/^declare -x ([^=]*)=.*/\1/' | grep -i '_proxy$') env -i "${_env[@]}" \ -pacstrap -GMcd ${pac_conf:+-C "$pac_conf"} "$working_dir" \ +pacstrap -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" -- cgit v1.2.3-70-g09d2