smoother first login

This commit is contained in:
Tobias Powalowski 2023-03-04 10:10:48 +01:00
parent a170f68ca8
commit 91370ed847
2 changed files with 8 additions and 7 deletions

View file

@ -1,7 +1,7 @@
On the road to 2023.03
Highlights:
- linux 6.2.x
- added system wide locales: en_US,de_DE,fr_FR,es_ES,pt_PT,ru_RU
- added system wide locales: en_US, de_DE, fr_FR, es_ES, pt_PT, ru_RU
Environment changes:
- implemented emergency shell with messages and with big font detection support
- implemented new zram routine for all boot types

View file

@ -62,8 +62,12 @@ _enter_shell() {
[[ -z $TTY ]] && TTY=$(tty)
# dbus sources profiles again
if ! echo "${TTY}" | grep -q pts; then
cd /
if ! [[ -e /tmp/.locale ]]; then
echo -e "Hit \e[1m\e[92mENTER\e[m for \e[1mfirst\e[m login setup."
else
echo -e "Hit \e[1m\e[92mENTER\e[m for \e[1mshell\e[m login."
fi
cd /
read -r
clear
fi
@ -153,17 +157,14 @@ else
fi
if [[ -e /usr/bin/setup ]]; then
_local_mode
_enter_shell
if ! [[ -e /tmp/.locale ]]; then
echo -e "Hit \e[1m\e[92mENTER\e[m for \e[1mfirst\e[m login setup."
read -r
if ! [[ -e /tmp/.locale ]]; then
archboot-locale.sh
cat /etc/motd
source /etc/locale.conf
fi
fi
_local_mode
_enter_shell
if ! [[ -e /tmp/.setup ]]; then
setup
fi