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 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-gui \
anaconda-live \
anaconda-widgets \
xorg-x11-server-Xwayland \
polkit
2026-03-08 17:44:42 +01:00
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]
Name=Install to Disk
Comment=Install this system to your computer
2026-03-08 21:17:39 +01:00
Exec=systemctl start anaconda-webui.service
Icon=system-software-install
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
# --------------------------------------------------------------------
# Phase 4: Finalen Zielzustand herstellen
# --------------------------------------------------------------------
mkdir -p /home