add sleep before dialog is run

This commit is contained in:
Tobias Powalowski 2023-11-16 22:07:53 +01:00
parent e488a56eb9
commit 62e0ee2d03

View file

@ -122,6 +122,7 @@ fi
if [[ "${TTY}" = "tty1" ]] ; then
if ! mount | grep -q zram0; then
sleep 1
_TITLE="Archboot ${_RUNNING_ARCH} | ${_RUNNING_KERNEL} | Basic Setup | ZRAM"
_switch_root_zram | _dialog --title " Initializing System " --gauge "Creating /dev/zram0 with zstd compression..." 6 75 0 | tee -a /dev/ttyS0 /dev/ttyAMA0 /dev/ttyUSB0 /dev/pts/0 2>"${_NO_LOG}"
# fix clear screen on all terminals