mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
readd x86_64 memory gap
This commit is contained in:
parent
2e58113234
commit
be82a4e6de
2 changed files with 11 additions and 2 deletions
|
@ -100,12 +100,20 @@ elif [[ "$(uname -m)" == "aarch64" && "$(grep -w MemTotal /proc/meminfo | cut -d
|
|||
"$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -lt 4210000 ]]; then
|
||||
_welcome
|
||||
echo -e "\033[1m\033[91mMemory check failed:\033[0m"
|
||||
echo -e "\033[91m- Memory gap detected: \033[1m3950M - 4.299M RAM\033[0m"
|
||||
echo -e "\033[91m- Kexec memory gap detected: \033[1m3950M - 4.299M RAM\033[0m"
|
||||
echo -e "\033[91m- Possibility of not working \033[1mkexec\033[0m\033[91m boot is given.\033[0m"
|
||||
echo -e "\033[93m- Please use \033[1mmore\033[0m\033[93m or \033[1mless\033[0m\033[93m RAM.\033[0m"
|
||||
echo -e "\033[91mAborting ...\033[0m"
|
||||
_enter_shell
|
||||
elif [[ "$(uname -m)" == "x86_64" && "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -gt 4670000 &&\
|
||||
"$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -lt 4210000 ]]; then
|
||||
_welcome
|
||||
echo -e "\033[1m\033[91mMemory check failed:\033[0m"
|
||||
echo -e "\033[91m- Kexec memory gap detected: \033[1m4750M - 5099M RAM\033[0m"
|
||||
echo -e "\033[91m- Possibility of not working \033[1mkexec\033[0m\033[91m boot is given.\033[0m"
|
||||
echo -e "\033[93m- Please use \033[1mmore\033[0m\033[93m or \033[1mless\033[0m\033[93m RAM.\033[0m"
|
||||
echo -e "\033[91mAborting ...\033[0m"
|
||||
_enter_shell
|
||||
|
||||
else
|
||||
_welcome
|
||||
_run_update_installer
|
||||
|
|
|
@ -43,6 +43,7 @@ usage () {
|
|||
if ! [[ -e "/.graphic_run" ]]; then
|
||||
_graphic_options
|
||||
echo -e " \033[1m-launch-xfce\033[0m Launch XFCE desktop with VNC sharing enabled."
|
||||
echo ""
|
||||
fi
|
||||
fi
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue