add new memory barriers for options

This commit is contained in:
Tobias Powalowski 2023-02-20 11:35:29 +01:00
parent 42c3968ca5
commit af75966633
2 changed files with 12 additions and 2 deletions

View file

@ -95,7 +95,17 @@ _run_update_installer() {
if [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -lt 2571000 ]]; then
_run_latest
else
_run_latest_install
# local image
if [[ -e /var/cache/pacman/pkg/archboot.db ]]; then
_run_latest_install
else
# latest image
if [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -lt 3271000 ]]; then
_run_latest
else
_run_latest_install
fi
fi
fi
elif [[ "${TTY}" == "ttyS0" || "${TTY}" == "ttyAMA0" || "${TTY}" == "ttyUSB0" || "${TTY}" == "pts/0" ]]; then
if [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -gt 2571000 ]]; then

View file

@ -64,7 +64,7 @@ usage () {
echo -e " \e[1m-latest\e[m Launch latest archboot environment (using kexec)."
fi
fi
if [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -gt 2571000 ]]; then
if [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -gt 3271000 ]]; then
if ! [[ "${_RUNNING_ARCH}" == "riscv64" ]]; then
echo -e " \e[1m-latest-install\e[m Launch latest archboot environment with"
echo -e " package cache (using kexec)."