mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
fix offline pacman
This commit is contained in:
parent
964df5487a
commit
cdde1a6227
2 changed files with 2 additions and 6 deletions
|
@ -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() {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue