Update enable_anaconda.sh

This commit is contained in:
humocs-man
2026-03-08 20:42:12 +01:00
committed by GitHub
parent b7d8a50b6c
commit 7ea50a5c29
+15 -8
View File
@@ -1,17 +1,22 @@
#!/usr/bin/env bash
set -euxo pipefail
# 1. /home komplett entfernen
# --------------------------------------------------------------------
# Phase 1: Rootfs vorbereiten Anaconda erwartet KEIN /home
# --------------------------------------------------------------------
rm -rf /home
# 2. Anaconda installieren
# --------------------------------------------------------------------
# Phase 2: Installer installieren
# --------------------------------------------------------------------
dnf install -y \
anaconda \
anaconda-webui
# 3. Desktop-Datei vorbereiten, aber OHNE /home zu benutzen
INSTALLER_DESKTOP="/usr/share/applications/install-to-disk.desktop"
cat >"$INSTALLER_DESKTOP" <<'EOF'
# --------------------------------------------------------------------
# Phase 3: Installer-Launcher systemweit anlegen
# --------------------------------------------------------------------
cat > /usr/share/applications/install-to-disk.desktop <<'EOF'
[Desktop Entry]
Name=Install to Disk
Comment=Install this system to your computer
@@ -22,5 +27,7 @@ Type=Application
Categories=System;
EOF
# 4. Erst ganz am Ende /home anlegen
mkdir -p /home/liveuser/.local/share/applications
# --------------------------------------------------------------------
# Phase 4: Finalen Zielzustand herstellen
# --------------------------------------------------------------------
mkdir -p /home