mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
remove kexec memory gaps
This commit is contained in:
parent
ea0bb0736e
commit
352e38b03e
1 changed files with 0 additions and 18 deletions
|
@ -96,24 +96,6 @@ elif [[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e
|
||||||
echo -e "\033[93m- Please add \033[1mmore\033[0m\033[93m than \033[1m3.3GB\033[0m\033[93m RAM.\033[0m"
|
echo -e "\033[93m- Please add \033[1mmore\033[0m\033[93m than \033[1m3.3GB\033[0m\033[93m RAM.\033[0m"
|
||||||
echo -e "\033[91mAborting ...\033[0m"
|
echo -e "\033[91mAborting ...\033[0m"
|
||||||
_enter_shell
|
_enter_shell
|
||||||
elif [[ "$(uname -m)" == "aarch64" && "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -gt 3860000 &&\
|
|
||||||
"$(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[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 5220000 ]]; then
|
|
||||||
_welcome
|
|
||||||
echo -e "\033[1m\033[91mMemory check failed:\033[0m"
|
|
||||||
echo -e "\033[91m- Kexec memory gap detected: \033[1m4750M - 5299M 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
|
else
|
||||||
_welcome
|
_welcome
|
||||||
_run_update_installer
|
_run_update_installer
|
||||||
|
|
Loading…
Reference in a new issue