fix move to common

This commit is contained in:
Tobias Powalowski 2022-11-12 15:05:33 +01:00
parent ad51478a81
commit 8b000796ca
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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} ..."