Allow modifications of pacman.conf

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-05-18 14:45:13 +02:00
parent b45906c39d
commit d558d52655
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

8
run.sh
View file

@ -49,6 +49,14 @@ fi
REPOADD_OPTS+=(--sign)
}
if [ -e /config/pacman.conf ]; then
# Allow full overwrite of pacman.conf
cp /config/pacman.conf /etc/pacman.conf
elif [ -e /config/pacman.conf.partial ]; then
# Allow to provide a partial pacman.conf to append
cat /config/pacman.conf.partial >>/etc/pacman.conf
fi
# Update pacman index and any updated package
pacman -Syyu --noconfirm