Update enable_anaconda.sh
This commit is contained in:
+15
-8
@@ -1,17 +1,22 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
# 1. /home komplett entfernen
|
# --------------------------------------------------------------------
|
||||||
|
# Phase 1: Rootfs vorbereiten – Anaconda erwartet KEIN /home
|
||||||
|
# --------------------------------------------------------------------
|
||||||
rm -rf /home
|
rm -rf /home
|
||||||
|
|
||||||
# 2. Anaconda installieren
|
# --------------------------------------------------------------------
|
||||||
|
# Phase 2: Installer installieren
|
||||||
|
# --------------------------------------------------------------------
|
||||||
dnf install -y \
|
dnf install -y \
|
||||||
anaconda \
|
anaconda \
|
||||||
anaconda-webui
|
anaconda-webui
|
||||||
|
|
||||||
# 3. Desktop-Datei vorbereiten, aber OHNE /home zu benutzen
|
# --------------------------------------------------------------------
|
||||||
INSTALLER_DESKTOP="/usr/share/applications/install-to-disk.desktop"
|
# Phase 3: Installer-Launcher systemweit anlegen
|
||||||
|
# --------------------------------------------------------------------
|
||||||
cat >"$INSTALLER_DESKTOP" <<'EOF'
|
cat > /usr/share/applications/install-to-disk.desktop <<'EOF'
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=Install to Disk
|
Name=Install to Disk
|
||||||
Comment=Install this system to your computer
|
Comment=Install this system to your computer
|
||||||
@@ -22,5 +27,7 @@ Type=Application
|
|||||||
Categories=System;
|
Categories=System;
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# 4. Erst ganz am Ende /home anlegen
|
# --------------------------------------------------------------------
|
||||||
mkdir -p /home/liveuser/.local/share/applications
|
# Phase 4: Finalen Zielzustand herstellen
|
||||||
|
# --------------------------------------------------------------------
|
||||||
|
mkdir -p /home
|
||||||
|
|||||||
Reference in New Issue
Block a user