mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
avoid new dialog in init
This commit is contained in:
parent
521c5a6f7e
commit
e02a35c78d
2 changed files with 3 additions and 3 deletions
|
@ -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))
|
||||||
|
|
|
@ -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 "$@"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue