From dcbe6c86dcb43d8fc9c7dfd399eddcecee5abdf4 Mon Sep 17 00:00:00 2001 From: Dennis ten Hoove Date: Wed, 28 Feb 2024 08:58:28 +0100 Subject: [PATCH] pacstrap use overlay pacman.conf if available --- arkdep-build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arkdep-build b/arkdep-build index fcb2b52..d2e09d0 100755 --- a/arkdep-build +++ b/arkdep-build @@ -184,7 +184,12 @@ if [[ $type == 'archlinux' ]]; then # Read base package list and install base system readarray bootstrap_packages < $variantdir/bootstrap.list printf '\e[1;34m-->\e[0m\e[1m Installing base packages\e[0m\n' - pacstrap -c $workdir ${bootstrap_packages[*]} || cleanup_and_quit 'Failed to install secondary package list' + # If pacman.conf is available in overlay, use it + if [[ -f $workdir/overlay/etc/pacman.conf ]]; then + pacstrap -c -C $workdir/overlay/etc/pacman.conf $workdir ${bootstrap_packages[*]} || cleanup_and_quit 'Failed to install secondary package list' + else + pacstrap -c $workdir ${bootstrap_packages[*]} || cleanup_and_quit 'Failed to install secondary package list' + fi # If overlay directory exists in variant copy it's contents to the temporary subvolume if [[ -d $variantdir/overlay ]]; then