From 6ef1645e93c85137aa702f06495e81d45327c7bc Mon Sep 17 00:00:00 2001 From: srepac <68381903+srepac@users.noreply.github.com> Date: Sat, 27 May 2023 09:21:42 -0700 Subject: [PATCH] Show first time boot status in oled (#134) --- scripts/kvmd-bootconfig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/kvmd-bootconfig b/scripts/kvmd-bootconfig index 03e30908..20f67d5a 100755 --- a/scripts/kvmd-bootconfig +++ b/scripts/kvmd-bootconfig @@ -48,6 +48,10 @@ rw # ========== First boot configuration ========== if [ -n "$FIRSTBOOT$FIRST_BOOT" ]; then + ### stop regular kvmd-oled service and show first time setup status in oled + systemctl stop kvmd-oled + /usr/bin/kvmd-oled --interval=0 --text="First time setup\nDo NOT interrupt\nPlease Wait...\n" + ( \ (umount /etc/machine-id || true) \ && echo -n > /etc/machine-id \ @@ -196,7 +200,6 @@ fi # ========== Finish ========== - rm -f /boot/pikvm.txt if [ -f /boot/pikvm-reboot.txt ]; then @@ -208,4 +211,6 @@ if [ -f /boot/pikvm-reboot.txt ]; then sleep 3 else ro + # critical tasks have completed so start kvmd-oled service as an indicator that first boot tasks are complete + systemctl restart kvmd-oled fi