From 7ea50a5c2903b07620ab435753b35006c36d580e Mon Sep 17 00:00:00 2001 From: humocs-man <251756307+humocs-man@users.noreply.github.com> Date: Sun, 8 Mar 2026 20:42:12 +0100 Subject: [PATCH] Update enable_anaconda.sh --- iso/enable_anaconda.sh | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/iso/enable_anaconda.sh b/iso/enable_anaconda.sh index a53229d..78b6247 100755 --- a/iso/enable_anaconda.sh +++ b/iso/enable_anaconda.sh @@ -1,17 +1,22 @@ +#!/usr/bin/env bash set -euxo pipefail -# 1. /home komplett entfernen +# -------------------------------------------------------------------- +# Phase 1: Rootfs vorbereiten – Anaconda erwartet KEIN /home +# -------------------------------------------------------------------- rm -rf /home -# 2. Anaconda installieren +# -------------------------------------------------------------------- +# Phase 2: Installer installieren +# -------------------------------------------------------------------- dnf install -y \ anaconda \ anaconda-webui -# 3. Desktop-Datei vorbereiten, aber OHNE /home zu benutzen -INSTALLER_DESKTOP="/usr/share/applications/install-to-disk.desktop" - -cat >"$INSTALLER_DESKTOP" <<'EOF' +# -------------------------------------------------------------------- +# 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 @@ -22,5 +27,7 @@ Type=Application Categories=System; EOF -# 4. Erst ganz am Ende /home anlegen -mkdir -p /home/liveuser/.local/share/applications +# -------------------------------------------------------------------- +# Phase 4: Finalen Zielzustand herstellen +# -------------------------------------------------------------------- +mkdir -p /home