From 8b000796caaf50632bfb759d92fb9d1a5fe66eaa Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sat, 12 Nov 2022 15:05:33 +0100 Subject: [PATCH] fix move to common --- usr/lib/archboot/container.sh | 2 +- usr/lib/archboot/repository.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/archboot/container.sh b/usr/lib/archboot/container.sh index eae8a9ab3..653feffc8 100644 --- a/usr/lib/archboot/container.sh +++ b/usr/lib/archboot/container.sh @@ -171,7 +171,7 @@ _install_archboot() { } _download_graphical() { - _riscv64_disable_graphics "${1}" + _riscv64_disable_graphics "${1}" "${2}" if grep -qw archboot /etc/hostname; then # strip down to XFCE on memory < 4096 if [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -gt 3478000 ]]; then diff --git a/usr/lib/archboot/repository.sh b/usr/lib/archboot/repository.sh index 151df0b2f..3ff0ce4d3 100644 --- a/usr/lib/archboot/repository.sh +++ b/usr/lib/archboot/repository.sh @@ -12,9 +12,9 @@ _usage () { } _download_packages() { + _riscv64_disable_graphics "${1}" "${2}" if [[ "${2}" == "use_binfmt" ]]; then _pacman_key "${1}" - _riscv64_disable_graphics "${1}" fi _PACKAGES="${_PACKAGES} ${_ARCHBOOT} ${_GRAPHICAL_PACKAGES}" echo "Downloading ${_PACKAGES} to ${1} ..."