mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix size
This commit is contained in:
parent
ee5db7ec8e
commit
6157116b2a
1 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ _update_environment() {
|
||||||
if update | grep -q '\-latest'; then
|
if update | grep -q '\-latest'; then
|
||||||
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 "2571000" ]]; then
|
||||||
if ! [[ "${_RUNNING_ARCH}" == "riscv64" ]]; then
|
if ! [[ "${_RUNNING_ARCH}" == "riscv64" ]]; then
|
||||||
_dialog --infobox "Refreshing package database..." 3 70
|
_dialog --infobox "Refreshing package database..." 3 50
|
||||||
pacman -Sy &>"${_LOG}"
|
pacman -Sy &>"${_LOG}"
|
||||||
sleep 1
|
sleep 1
|
||||||
_dialog --infobox "Checking on new online kernel version..." 3 50
|
_dialog --infobox "Checking on new online kernel version..." 3 50
|
||||||
|
@ -107,7 +107,7 @@ _update_environment() {
|
||||||
echo "${_LOCAL_KERNEL} local kernel version and ${_ONLINE_KERNEL} online kernel version." >"${_LOG}"
|
echo "${_LOCAL_KERNEL} local kernel version and ${_ONLINE_KERNEL} online kernel version." >"${_LOG}"
|
||||||
sleep 2
|
sleep 2
|
||||||
if [[ "${_LOCAL_KERNEL}" == "${_ONLINE_KERNEL}" ]]; then
|
if [[ "${_LOCAL_KERNEL}" == "${_ONLINE_KERNEL}" ]]; then
|
||||||
_dialog --infobox "No new kernel online available. Skipping update environment." 3 50
|
_dialog --infobox "No new kernel online available. Skipping update environment." 3 70
|
||||||
sleep 3
|
sleep 3
|
||||||
else
|
else
|
||||||
_dialog --defaultno --yesno "New online kernel version ${_ONLINE_KERNEL} available.\n\nDo you want to update the archboot environment to latest packages with caching packages for installation?\n\nATTENTION:\nThis will reboot the system using kexec!" 11 60 && _UPDATE_ENVIRONMENT=1
|
_dialog --defaultno --yesno "New online kernel version ${_ONLINE_KERNEL} available.\n\nDo you want to update the archboot environment to latest packages with caching packages for installation?\n\nATTENTION:\nThis will reboot the system using kexec!" 11 60 && _UPDATE_ENVIRONMENT=1
|
||||||
|
|
Loading…
Reference in a new issue