Replace pacman conf used to build the image

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-05-22 11:59:33 +02:00
parent cef1fdc4a4
commit 4f009fdd7b
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -3,7 +3,7 @@ set -euxo pipefail
[ $(id -u) -eq 0 ] || exec sudo bash $0 "$@" [ $(id -u) -eq 0 ] || exec sudo bash $0 "$@"
[ -e /usr/share/devtools/pacman-extra.conf ] || { [ -e /usr/share/devtools/pacman.conf.d/extra.conf ] || {
echo "Missing 'devtools' on this system. Please 'pacman -S devtools'." echo "Missing 'devtools' on this system. Please 'pacman -S devtools'."
exit 1 exit 1
} }
@ -35,7 +35,7 @@ trap rm_temp EXIT
mount --bind ${tmpdir} ${tmpdir} mount --bind ${tmpdir} ${tmpdir}
# Pacstrap the requested packages # Pacstrap the requested packages
env -i pacstrap -C /usr/share/devtools/pacman-extra.conf -c -G -M ${tmpdir} "${packages[@]}" env -i pacstrap -C /usr/share/devtools/pacman.conf.d/extra.conf -c -G -M ${tmpdir} "${packages[@]}"
# Add local configurations # Add local configurations
cp --recursive --preserve=timestamps --backup --suffix=.pacnew rootfs/* ${tmpdir}/ cp --recursive --preserve=timestamps --backup --suffix=.pacnew rootfs/* ${tmpdir}/