mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
add message after ZRAM creation
This commit is contained in:
parent
af097216cf
commit
df44cc95e3
1 changed files with 14 additions and 13 deletions
|
@ -52,19 +52,6 @@ if [[ "${TTY}" = "tty1" ]]; then
|
|||
rm -f /sysroot/{VERSION,config,buildconfig,init,.archboot} &>"${_NO_LOG}"
|
||||
_progress "100" "System is ready."
|
||||
read -r -t 1
|
||||
# fix clear screen on all terminals
|
||||
printf "\ec" | tee -a /dev/ttyS0 /dev/ttyAMA0 /dev/ttyUSB0 /dev/pts/0 2>"${_NO_LOG}"
|
||||
# https://www.freedesktop.org/software/systemd/man/bootup.html
|
||||
# enable systemd initrd functionality
|
||||
: > /etc/initrd-release
|
||||
# fix /run/nouser issues
|
||||
systemctl stop systemd-user-sessions.service
|
||||
# avoid issues by taking down services in ordered way
|
||||
systemctl stop dbus-org.freedesktop.login1.service
|
||||
systemctl stop dbus.socket
|
||||
# prepare for initrd-switch-root
|
||||
systemctl start initrd-cleanup.service
|
||||
systemctl start initrd-switch-root.target
|
||||
else
|
||||
while true; do
|
||||
read -r -t 1
|
||||
|
@ -128,6 +115,20 @@ if [[ "${TTY}" = "tty1" ]] ; then
|
|||
if ! mount | grep -q zram0; then
|
||||
_TITLE="Archboot $(uname -m) | 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
|
||||
printf "\ec" | tee -a /dev/ttyS0 /dev/ttyAMA0 /dev/ttyUSB0 /dev/pts/0 2>"${_NO_LOG}"
|
||||
echo "Launching systemd $(udevadm --version)..."
|
||||
# https://www.freedesktop.org/software/systemd/man/bootup.html
|
||||
# enable systemd initrd functionality
|
||||
: > /etc/initrd-release
|
||||
# fix /run/nouser issues
|
||||
systemctl stop systemd-user-sessions.service
|
||||
# avoid issues by taking down services in ordered way
|
||||
systemctl stop dbus-org.freedesktop.login1.service
|
||||
systemctl stop dbus.socket
|
||||
# prepare for initrd-switch-root
|
||||
systemctl start initrd-cleanup.service
|
||||
systemctl start initrd-switch-root.target
|
||||
else
|
||||
if ! [[ -e "${_CACHEDIR}/archboot.db" ]]; then
|
||||
systemctl start systemd-networkd
|
||||
|
|
Loading…
Reference in a new issue