Files
fluffy-pancake/iso/enable_anaconda.sh
T
2026-03-08 23:03:16 +01:00

38 lines
1.2 KiB
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
set -euxo pipefail
# --------------------------------------------------------------------
# Phase 1: Rootfs vorbereiten Anaconda erwartet KEIN /home
# --------------------------------------------------------------------
rm -rf /home
# --------------------------------------------------------------------
# Phase 2: Installer installieren
# --------------------------------------------------------------------
# Phase 2: Web-Installer installieren
# --------------------------------------------------------------------
dnf install -y \
anaconda \
anaconda-live \
anaconda-webui \
polkit
# --------------------------------------------------------------------
# Phase 3: Installer-Launcher systemweit anlegen
# --------------------------------------------------------------------
cat > /usr/share/applications/install-to-disk.desktop <<'EOF'
[Desktop Entry]
Name=Jetzt installieren
Comment=Installiere das System auf die Festplatte
Exec=firefox http://localhost:8006
Icon=system-installer
Terminal=false
Type=Application
Categories=System;
EOF
# --------------------------------------------------------------------
# Phase 4: Finalen Zielzustand herstellen
# --------------------------------------------------------------------
mkdir -p /home