mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix pacsetup
This commit is contained in:
parent
b5c06d7d2e
commit
2f14aa8bd8
1 changed files with 11 additions and 5 deletions
|
@ -120,9 +120,12 @@ _update_environment() {
|
|||
if [[ "${_LOCAL_KERNEL}" == "${_ONLINE_KERNEL}" ]]; then
|
||||
_progress "98" "No new kernel online available. Skipping update environment."
|
||||
sleep 2
|
||||
else
|
||||
_progress "98" "New kernel online available."
|
||||
touch /.new_kernel
|
||||
fi
|
||||
_progress "100" "Pacman configuration completed successfully."
|
||||
sleep 2
|
||||
fi
|
||||
}
|
||||
|
||||
_check
|
||||
|
@ -166,10 +169,13 @@ if [[ ! -e "/var/cache/pacman/pkg/archboot.db" ]] &&\
|
|||
[[ "$(grep -w MemTotal /proc/meminfo | cut -d ':' -f2 | sed -e 's# ##g' -e 's#kB$##g')" -gt "2571000" ]] &&\
|
||||
! [[ "${_RUNNING_ARCH}" == "riscv64" ]]; then
|
||||
_update_environment | _dialog --no-mouse --gauge "Refreshing pacman package database..." 6 70 0
|
||||
if [[ -e /.new_kernel ]]; then
|
||||
_dialog --title " New Kernel Available " --defaultno --yesno "Do you want to update the Archboot Environment to ${_ONLINE_KERNEL}?\n\nATTENTION:\nThis will reboot the system using kexec!" 9 60 && _UPDATE_ENVIRONMENT=1
|
||||
if [[ -n "${_UPDATE_ENVIRONMENT}" ]]; then
|
||||
_run_update_environment
|
||||
fi
|
||||
rm /.new_kernel
|
||||
fi
|
||||
_cleanup
|
||||
fi
|
||||
_dialog --no-mouse --infobox "Pacman configuration completed successfully." 3 60
|
||||
|
|
Loading…
Reference in a new issue