mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix dialog
This commit is contained in:
parent
0b098bca86
commit
fa2094076b
1 changed files with 4 additions and 4 deletions
|
@ -81,13 +81,13 @@ update_environment() {
|
|||
UPDATE_ENVIRONMENT=""
|
||||
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
|
||||
DIALOG --infobox "Refreshing package database ..." 3 40
|
||||
DIALOG --infobox "Refreshing package database ..." 3 50
|
||||
pacman -Sy > "${LOG}" 2>&1 || (DIALOG --msgbox "Pacman preparation failed! Check ${LOG} for errors." 6 60; return 1)
|
||||
sleep 1
|
||||
DIALOG --infobox "Checking new online kernel version ..." 3 50
|
||||
sleep 1
|
||||
DIALOG --infobox "Checking on new online kernel version ..." 3 50
|
||||
RUNNING_KERNEL="$(pacman -Qi ${KERNELPKG} | grep Version | cut -d ':' -f2 | sed -e 's# ##')"
|
||||
ONLINE_KERNEL="$(pacman -Si ${KERNELPKG} | grep Version | cut -d ':' -f2 | sed -e 's# ##')"
|
||||
sleep 1
|
||||
if ! [[ "${RUNNING_KERNEL}" == "${ONLINE_KERNEL}" ]]; then
|
||||
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!" 0 0 && UPDATE_ENVIRONMENT="1"
|
||||
if [[ "${UPDATE_ENVIRONMENT}" == "1" ]]; then
|
||||
|
@ -95,7 +95,7 @@ update_environment() {
|
|||
/usr/bin/update-installer -latest-install > "${LOG}" 2>&1
|
||||
fi
|
||||
else
|
||||
DIALOG --infobox "No new kernel online available. Continuing in 3 seconds ..." 4 70
|
||||
DIALOG --infobox "No new kernel online available. Continuing in 3 seconds ..." 3 70
|
||||
sleep 3
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue