Files
fluffy-pancake/iso/enable_anaconda.sh
T
2026-03-08 21:17:39 +01:00

34 lines
1.1 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
# --------------------------------------------------------------------
dnf install -y \
anaconda \
anaconda-webui
# --------------------------------------------------------------------
# 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
Exec=systemctl start anaconda-webui.service
Icon=system-software-install
Terminal=false
Type=Application
Categories=System;
EOF
# --------------------------------------------------------------------
# Phase 4: Finalen Zielzustand herstellen
# --------------------------------------------------------------------
mkdir -p /home