pacstrap use overlay pacman.conf if available
This commit is contained in:
parent
156d7c082f
commit
dcbe6c86dc
1 changed files with 6 additions and 1 deletions
|
@ -184,7 +184,12 @@ if [[ $type == 'archlinux' ]]; then
|
||||||
# Read base package list and install base system
|
# Read base package list and install base system
|
||||||
readarray bootstrap_packages < $variantdir/bootstrap.list
|
readarray bootstrap_packages < $variantdir/bootstrap.list
|
||||||
printf '\e[1;34m-->\e[0m\e[1m Installing base packages\e[0m\n'
|
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 overlay directory exists in variant copy it's contents to the temporary subvolume
|
||||||
if [[ -d $variantdir/overlay ]]; then
|
if [[ -d $variantdir/overlay ]]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue