From dc8da264c892106c1507d053484f0cc513c7cdb6 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Mon, 12 Dec 2022 15:16:13 +0100 Subject: [PATCH] add comment --- usr/lib/archboot/update-installer/update-installer.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/lib/archboot/update-installer/update-installer.sh b/usr/lib/archboot/update-installer/update-installer.sh index 347ea4b3c..3b3f4c30b 100644 --- a/usr/lib/archboot/update-installer/update-installer.sh +++ b/usr/lib/archboot/update-installer/update-installer.sh @@ -34,8 +34,10 @@ usage () { if [[ ! -e "/var/cache/pacman/pkg/archboot.db" || -e "/usr/bin/setup" ]]; then echo -e " \033[1m-u\033[0m Update scripts: setup, quickinst, tz, km and helpers." fi + # latest image if [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -gt 2500000 && ! -e "/.full_system" && ! -e "/var/cache/pacman/pkg/archboot.db" ]]; then echo -e " \033[1m-full-system\033[0m Switch to full Arch Linux system." + # local image elif [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -gt 2571000 && ! -e "/.full_system" && -e "/var/cache/pacman/pkg/archboot.db" && -e "/usr/bin/setup" ]]; then echo -e " \033[1m-full-system\033[0m Switch to full Arch Linux system." fi