summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrepac <[email protected]>2023-05-27 09:21:42 -0700
committerGitHub <[email protected]>2023-05-27 19:21:42 +0300
commit6ef1645e93c85137aa702f06495e81d45327c7bc (patch)
tree1d4a0d9ad24cd2a5150cb49c376f5c76d5bf685b
parentbfbf3172e30cd519190fe48d29d80cc39b04e0e0 (diff)
Show first time boot status in oled (#134)
-rwxr-xr-xscripts/kvmd-bootconfig7
1 files changed, 6 insertions, 1 deletions
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