Files
fluffy-pancake/iso/enable_anaconda.sh
T

38 lines
1.2 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
# --------------------------------------------------------------------
# Phase 2: Installer installieren
# --------------------------------------------------------------------
2026-03-08 23:03:16 +01:00
# Phase 2: Web-Installer installieren
# --------------------------------------------------------------------
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-08 22:45:18 +01:00
polkit
2026-03-08 20:42:12 +01:00
# --------------------------------------------------------------------
# Phase 3: Installer-Launcher systemweit anlegen
# --------------------------------------------------------------------
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 23:03:16 +01:00
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
# --------------------------------------------------------------------
# Phase 4: Finalen Zielzustand herstellen
# --------------------------------------------------------------------
mkdir -p /home