From b3b74ec4432fd6437ff0d7ca2c9a733ce61972b1 Mon Sep 17 00:00:00 2001 From: humocs-man <251756307+humocs-man@users.noreply.github.com> Date: Sun, 8 Mar 2026 17:44:42 +0100 Subject: [PATCH] Update enable_anaconda.sh --- iso/enable_anaconda.sh | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/iso/enable_anaconda.sh b/iso/enable_anaconda.sh index 86a28d7..d08e804 100755 --- a/iso/enable_anaconda.sh +++ b/iso/enable_anaconda.sh @@ -2,31 +2,32 @@ set -euo pipefail # ------------------------------------------------------------ -# Minimal notwendige Installer-Komponenten +# Installer-Komponenten für Live-ISO # ------------------------------------------------------------ dnf -y install \ anaconda \ - pykickstart \ - lorax-templates-generic \ - || true + anaconda-webui \ + cockpit \ + cockpit-anaconda # ------------------------------------------------------------ -# Installer-Launcher (nur Live-System) +# Desktop-Launcher für Live-User (COSMIC-kompatibel) # ------------------------------------------------------------ -cat >/usr/share/applications/install-to-disk.desktop <<'EOF' +LIVEUSER_HOME="/home/liveuser" +APPDIR="$LIVEUSER_HOME/.local/share/applications" + +mkdir -p "$APPDIR" + +cat >"$APPDIR/install-to-disk.desktop" <<'EOF' [Desktop Entry] Name=Install to Disk Comment=Install this system to your computer -Exec=anaconda --liveinst +Exec=anaconda --webui Icon=system-installer Terminal=false Type=Application Categories=System; EOF -# ------------------------------------------------------------ -# Nur im Live-System behalten -# ------------------------------------------------------------ -if ! grep -q 'boot=live' /proc/cmdline; then - rm -f /usr/share/applications/install-to-disk.desktop -fi +chown -R liveuser:liveuser "$LIVEUSER_HOME/.local" +