mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix package installation in aarch64 container
This commit is contained in:
parent
b6a3e9f690
commit
37535ccaca
1 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ while [ $# -gt 0 ]; do
|
||||||
done
|
done
|
||||||
|
|
||||||
### check for root
|
### check for root
|
||||||
if ! [[ ${UID} -eq 0 ]]; then
|
if ! [[ ${UID} -eq 0 ]]; then |
|
||||||
echo "ERROR: Please run as root user!"
|
echo "ERROR: Please run as root user!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -74,8 +74,8 @@ systemd-nspawn -D "${_DIR}" pacman -Syu --noconfirm >/dev/null 2>&1
|
||||||
cp "${AARCH64_ARCHBOOT}" "${DIR}/"
|
cp "${AARCH64_ARCHBOOT}" "${DIR}/"
|
||||||
cp "${AARCH64_ARCHBOOT_FIRMWARE}" "${DIR}/"
|
cp "${AARCH64_ARCHBOOT_FIRMWARE}" "${DIR}/"
|
||||||
# install archboot-arm
|
# install archboot-arm
|
||||||
systemd-nspawn -D "${_DIR}" pacman -U --noconfirm /archboot-firmware-latest.tar.zst --noconfirm >/dev/null 2>&1
|
systemd-nspawn -D "${_DIR}" yes | pacman -U /archboot-firmware-latest.tar.zst >/dev/null 2>&1
|
||||||
systemd-nspawn -D "${_DIR}" pacman -U --noconfirm /archboot-arm-latest.tar.zst --noconfirm >/dev/null 2>&1
|
systemd-nspawn -D "${_DIR}" yes | pacman -U /archboot-arm-latest.tar.zst >/dev/null 2>&1
|
||||||
if [[ "${_SAVE_RAM}" == "1" ]]; then
|
if [[ "${_SAVE_RAM}" == "1" ]]; then
|
||||||
# clean container from not needed files
|
# clean container from not needed files
|
||||||
echo "Clean container, delete not needed files from ${_DIR} ..."
|
echo "Clean container, delete not needed files from ${_DIR} ..."
|
||||||
|
|
Loading…
Reference in a new issue