Update enable_anaconda.sh
This commit is contained in:
+12
-16
@@ -1,22 +1,17 @@
|
|||||||
#!/usr/bin/env bash
|
set -euxo pipefail
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
# ------------------------------------------------------------
|
# 1. /home komplett entfernen
|
||||||
# Installer-Komponenten für Live-ISO
|
rm -rf /home
|
||||||
# ------------------------------------------------------------
|
|
||||||
dnf -y install \
|
# 2. Anaconda installieren
|
||||||
|
dnf install -y \
|
||||||
anaconda \
|
anaconda \
|
||||||
anaconda-webui
|
anaconda-webui
|
||||||
|
|
||||||
# ------------------------------------------------------------
|
|
||||||
# Desktop-Launcher für Live-User (COSMIC-kompatibel)
|
|
||||||
# ------------------------------------------------------------
|
|
||||||
LIVEUSER_HOME="/home/liveuser"
|
|
||||||
APPDIR="$LIVEUSER_HOME/.local/share/applications"
|
|
||||||
|
|
||||||
mkdir -p "$APPDIR"
|
# 3. Desktop-Datei vorbereiten, aber OHNE /home zu benutzen
|
||||||
|
INSTALLER_DESKTOP="/usr/share/applications/install-to-disk.desktop"
|
||||||
|
|
||||||
cat >"$APPDIR/install-to-disk.desktop" <<'EOF'
|
cat >"$INSTALLER_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
|
||||||
@@ -27,4 +22,5 @@ Type=Application
|
|||||||
Categories=System;
|
Categories=System;
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
mkdir -p /home
|
# 4. Erst ganz am Ende /home anlegen
|
||||||
|
mkdir -p /home/liveuser/.local/share/applications
|
||||||
|
|||||||
Reference in New Issue
Block a user