Erststart-Anzeige: am Ende Bildschirm leeren und auf Konsole 1 zurueck (Geraete ohne Display-Manager)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
adminandClaude Opus 5.5 committed 2026-10-03 12:44:52 +02:00
1 parent d4a496686c
commit c9950bff23
1 file changed
+11 -1
+11 -1
View File
@@ -16,9 +16,19 @@ STATUS_PATH="/run/tuxflotte/agent/status"
TIMEOUT_SECONDS="${TUXFLOTTE_FIRSTBOOT_TIMEOUT:-1800}"
VT=12
SWITCHED_VT=false
finish() {
mkdir -p "$(dirname "${DONE_MARKER}")"
date --iso-8601=seconds > "${DONE_MARKER}"
# Zurueck auf Konsole 1 (VM-Test 03.10.2026): ohne grafische Oberflaeche
# (z.B. Debian-Basis-Image) blieb sonst die letzte Fortschrittsanzeige
# auf Konsole 12 stehen. Mit Display-Manager uebernimmt der ohnehin.
if [[ "${SWITCHED_VT}" == true ]]; then
printf '\033[2J\033[H'
setterm --cursor on 2>/dev/null || true
chvt 1 2>/dev/null || true
fi
exit 0
}
@@ -28,7 +38,7 @@ finish() {
if command -v plymouth >/dev/null 2>&1 && plymouth --ping 2>/dev/null; then
plymouth quit
fi
chvt "${VT}" 2>/dev/null || true
chvt "${VT}" 2>/dev/null && SWITCHED_VT=true
setterm --cursor off 2>/dev/null || true
ROLES_PATH="/run/tuxflotte/agent/roles"