mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add new memory barriers for options
This commit is contained in:
parent
42c3968ca5
commit
af75966633
2 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)."
|
||||
|
|
Loading…
Reference in a new issue