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
2f14aa8bd8
commit
3542ef433d
1 changed files with 3 additions and 2 deletions
|
@ -122,7 +122,8 @@ _update_environment() {
|
||||||
sleep 2
|
sleep 2
|
||||||
else
|
else
|
||||||
_progress "98" "New kernel online available."
|
_progress "98" "New kernel online available."
|
||||||
touch /.new_kernel
|
echo ${_ONLINE_KERNEL} > /.new_kernel
|
||||||
|
sleep 2
|
||||||
fi
|
fi
|
||||||
_progress "100" "Pacman configuration completed successfully."
|
_progress "100" "Pacman configuration completed successfully."
|
||||||
sleep 2
|
sleep 2
|
||||||
|
@ -170,7 +171,7 @@ if [[ ! -e "/var/cache/pacman/pkg/archboot.db" ]] &&\
|
||||||
! [[ "${_RUNNING_ARCH}" == "riscv64" ]]; then
|
! [[ "${_RUNNING_ARCH}" == "riscv64" ]]; then
|
||||||
_update_environment | _dialog --no-mouse --gauge "Refreshing pacman package database..." 6 70 0
|
_update_environment | _dialog --no-mouse --gauge "Refreshing pacman package database..." 6 70 0
|
||||||
if [[ -e /.new_kernel ]]; then
|
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
|
_dialog --title " New Kernel Available " --defaultno --yesno "Do you want to update the Archboot Environment to $(cat /.new_kernel)?\n\nATTENTION:\nThis will reboot the system using kexec!" 9 60 && _UPDATE_ENVIRONMENT=1
|
||||||
if [[ -n "${_UPDATE_ENVIRONMENT}" ]]; then
|
if [[ -n "${_UPDATE_ENVIRONMENT}" ]]; then
|
||||||
_run_update_environment
|
_run_update_environment
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue