mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix cachedir for aarch64 local image
This commit is contained in:
parent
f04717f582
commit
c175e3415b
1 changed files with 4 additions and 2 deletions
|
@ -141,7 +141,8 @@ _aarch64_install_base_packages() {
|
|||
if [[ -e "$(basename "${_PACMAN_CONF}")" ]]; then
|
||||
_PACMAN_CONF=$(basename "${_PACMAN_CONF}")
|
||||
fi
|
||||
systemd-nspawn -q -D "${1}" /bin/bash -c "pacman -Sy ${_PACKAGES} --config ${_PACMAN_CONF} --ignore systemd-resolvconf --noconfirm" >/dev/null 2>&1
|
||||
[[ -d "${1}"/blankdb ]] || mkdir "${1}"/blankdb
|
||||
systemd-nspawn -q -D "${1}" /bin/bash -c "pacman -Sy ${_PACKAGES} --dbpath /blankdb --config ${_PACMAN_CONF} --ignore systemd-resolvconf --noconfirm" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
_aarch64_install_archboot() {
|
||||
|
@ -149,7 +150,8 @@ _aarch64_install_archboot() {
|
|||
_PACMAN_CONF=$(basename "${_PACMAN_CONF}")
|
||||
fi
|
||||
echo "Installing ${_ARCHBOOT} to ${1} ..."
|
||||
systemd-nspawn -q -D "${1}" /bin/bash -c "pacman -Sy ${_ARCHBOOT} --config ${_PACMAN_CONF} --ignore systemd-resolvconf --noconfirm" >/dev/null 2>&1
|
||||
[[ -d "${1}"/blankdb ]] || mkdir "${1}"/blankdb
|
||||
systemd-nspawn -q -D "${1}" /bin/bash -c "pacman -Sy ${_ARCHBOOT} --dbpath /blankdb --config ${_PACMAN_CONF} --ignore systemd-resolvconf --noconfirm" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
_copy_mirrorlist_and_pacman_conf() {
|
||||
|
|
Loading…
Reference in a new issue