Files
fluffy-pancake/iso/enable_anaconda.sh
T

60 lines
1.8 KiB
Bash
Raw Normal View History

2026-03-08 20:42:12 +01:00
#!/usr/bin/env bash
2026-03-08 20:25:14 +01:00
set -euxo pipefail
2026-03-08 16:11:49 +01:00
2026-03-08 20:42:12 +01:00
# --------------------------------------------------------------------
# Phase 1: Rootfs vorbereiten Anaconda erwartet KEIN /home
# --------------------------------------------------------------------
2026-03-08 20:25:14 +01:00
rm -rf /home
2026-03-08 20:42:12 +01:00
# --------------------------------------------------------------------
2026-03-09 19:56:42 +01:00
# Phase 2: Installer + Branding installieren
2026-03-08 23:03:16 +01:00
# --------------------------------------------------------------------
2026-03-08 20:25:14 +01:00
dnf install -y \
2026-03-08 16:11:49 +01:00
anaconda \
2026-03-08 22:45:18 +01:00
anaconda-live \
2026-03-08 23:03:16 +01:00
anaconda-webui \
2026-03-09 19:56:42 +01:00
anaconda-webui-branding-fedora \
polkit \
firefox
2026-03-08 20:42:12 +01:00
# --------------------------------------------------------------------
2026-03-09 19:56:42 +01:00
# Phase 3: WebUI systemd-Servicefile anlegen
# --------------------------------------------------------------------
cat > /usr/lib/systemd/system/anaconda-webui.service <<'EOF'
[Unit]
Description=Anaconda Web UI
After=network.target graphical.target
[Service]
Type=simple
ExecStart=/usr/bin/anaconda-webui
Restart=on-failure
[Install]
WantedBy=graphical.target
EOF
# --------------------------------------------------------------------
# Phase 4: Service aktivieren
# --------------------------------------------------------------------
systemctl enable anaconda-webui.service
# --------------------------------------------------------------------
# Phase 5: Desktop-Launcher für den Installer
2026-03-08 20:42:12 +01:00
# --------------------------------------------------------------------
cat > /usr/share/applications/install-to-disk.desktop <<'EOF'
2026-03-08 16:25:59 +01:00
[Desktop Entry]
2026-03-08 23:03:16 +01:00
Name=Jetzt installieren
Comment=Installiere das System auf die Festplatte
2026-03-09 07:35:32 +01:00
Exec=xdg-open http://localhost:8080
2026-03-08 23:03:16 +01:00
Icon=system-installer
2026-03-08 16:25:59 +01:00
Terminal=false
Type=Application
Categories=System;
2026-03-08 16:11:49 +01:00
EOF
2026-03-08 20:00:41 +01:00
2026-03-08 20:42:12 +01:00
# --------------------------------------------------------------------
2026-03-09 19:56:42 +01:00
# Phase 6: Finalen Zielzustand herstellen
2026-03-08 20:42:12 +01:00
# --------------------------------------------------------------------
mkdir -p /home