added live-mode to setup-Wizard

This commit is contained in:
humocs-man
2026-03-08 16:09:01 +01:00
parent a42f7292d6
commit 85d1250a41
+27 -1
View File
@@ -7,13 +7,39 @@ WIDTH=74
LOG="/var/log/firstboot-setup.log"
WIZARD_DONE="$HOME/.config/cosmic/firstboot.done"
# ----------------------------
# Detect live environment
# ----------------------------
if grep -q 'boot=live' /proc/cmdline; then
LIVE_MODE=yes
else
LIVE_MODE=no
fi
# ----------------------------
# Run only once
# ----------------------------
if [[ -f "$WIZARD_DONE" ]]; then
if [[ "$LIVE_MODE" == no ]] && [[ -f "$WIZARD_DONE" ]]; then
exit 0
fi
if [[ "$LIVE_MODE" == yes ]]; then
$DIALOG --title "COSMIC LiveUmgebung" --msgbox \
"Dies ist eine LiveVorschau des COSMICDesktops.
• Änderungen werden nicht gespeichert
• Anwendungen werden hier nicht installiert
Nach der Installation startet ein
SetupAssistent, der bei der Auswahl
von Anwendungen und optionalen Tools
wie Homebrew hilft." \
$HEIGHT $WIDTH
exit 0
fi
exec > >(tee -a "$LOG") 2>&1
abort() {