fix offline pacman

This commit is contained in:
Tobias Powalowski 2023-06-27 23:17:34 +02:00
parent 964df5487a
commit cdde1a6227
2 changed files with 2 additions and 6 deletions

View file

@ -24,7 +24,7 @@ if [[ "${_RUNNING_ARCH}" == "aarch64" ]]; then
_VMLINUZ_EFISTUB="Image"
fi
# abstract the common pacman args
_PACMAN="pacman --root ${_DESTDIR} ${_PACMAN_CONF} --cachedir=${_DESTDIR}/var/cache/pacman/pkg --noconfirm --noprogressbar"
_PACMAN="pacman --root ${_DESTDIR} --cachedir=${_DESTDIR}/var/cache/pacman/pkg --noconfirm --noprogressbar"
_MIRRORLIST="/etc/pacman.d/mirrorlist"
_linux_firmware() {
@ -88,6 +88,7 @@ _local_pacman_conf() {
echo "[archboot]" >> "${_PACMAN_CONF}"
echo "Server = file:///var/cache/pacman/pkg" >> "${_PACMAN_CONF}"
_PACMAN_CONF="--config ${_PACMAN_CONF}"
_PACMAN="pacman --root ${_DESTDIR} ${_PACMAN_CONF} --cachedir=${_DESTDIR}/var/cache/pacman/pkg --noconfirm --noprogressbar"
}
_auto_packages() {

View file

@ -127,11 +127,6 @@ _prepare_pacman() {
sleep 1
done
[[ -e /etc/systemd/system/pacman-init.service ]] && systemctl stop pacman-init.service
_dialog --infobox "Refreshing package database..." 3 40
if ! ${_PACMAN} -Sy ${_PACMAN_CONF} &>"${_LOG}"; then
_dialog --msgbox "Pacman preparation failed! Check ${_LOG} for errors." 6 60
return 1
fi
_dialog --infobox "Update Arch Linux keyring..." 3 40
_KEYRING="archlinux-keyring"
[[ "${_RUNNING_ARCH}" == "aarch64" ]] && _KEYRING="${_KEYRING} archlinuxarm-keyring"