avoid new dialog in init

This commit is contained in:
Tobias Powalowski 2023-08-02 11:09:01 +02:00
parent 521c5a6f7e
commit e02a35c78d
2 changed files with 3 additions and 3 deletions

View file

@ -95,7 +95,7 @@ _run_update_installer() {
cd / cd /
if [[ "${TTY}" == "tty1" ]]; then if [[ "${TTY}" == "tty1" ]]; then
_COUNT=0 _COUNT=0
_TITLE="Archboot ${_RUNNING_ARCH} | Basic Setup | Countdown" _TITLE="Archboot ${_RUNNING_ARCH} | Basic Setup | New Environment"
while true; do while true; do
sleep 1 sleep 1
_COUNT=$((_COUNT+1)) _COUNT=$((_COUNT+1))

View file

@ -115,6 +115,8 @@ _second_stage() {
# remove mkinitcpio files and directories # remove mkinitcpio files and directories
rm -rf /sysroot/{hooks,install,kernel,new_root,sysroot} &>/dev/null rm -rf /sysroot/{hooks,install,kernel,new_root,sysroot} &>/dev/null
rm -f /sysroot/{VERSION,config,buildconfig,init} &>/dev/null rm -f /sysroot/{VERSION,config,buildconfig,init} &>/dev/null
_progress "100" "The boot medium can be safely removed now."
read -r -t 2
} }
# mount kernel filesystems # mount kernel filesystems
mount -t proc proc /proc -o nosuid,noexec,nodev mount -t proc proc /proc -o nosuid,noexec,nodev
@ -155,8 +157,6 @@ _second_stage | _dialog --title "Initializing..." --gauge "${_KEEP} Removing fir
echo 0 > /proc/sys/kernel/sysrq echo 0 > /proc/sys/kernel/sysrq
# set font size in vconsole.conf # set font size in vconsole.conf
echo FONT=ter-v${SIZE}n >> /sysroot/etc/vconsole.conf echo FONT=ter-v${SIZE}n >> /sysroot/etc/vconsole.conf
echo | _dialog --title "Ready" --gauge "The boot medium can be safely removed now." 6 75 100
read -r -t 2
printf "\ec" printf "\ec"
exec switch_root /sysroot /usr/bin/init "$@" exec switch_root /sysroot /usr/bin/init "$@"