Update enable_anaconda.sh
This commit is contained in:
+14
-13
@@ -2,31 +2,32 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
# Minimal notwendige Installer-Komponenten
|
# Installer-Komponenten für Live-ISO
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
dnf -y install \
|
dnf -y install \
|
||||||
anaconda \
|
anaconda \
|
||||||
pykickstart \
|
anaconda-webui \
|
||||||
lorax-templates-generic \
|
cockpit \
|
||||||
|| true
|
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]
|
[Desktop Entry]
|
||||||
Name=Install to Disk
|
Name=Install to Disk
|
||||||
Comment=Install this system to your computer
|
Comment=Install this system to your computer
|
||||||
Exec=anaconda --liveinst
|
Exec=anaconda --webui
|
||||||
Icon=system-installer
|
Icon=system-installer
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=System;
|
Categories=System;
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# ------------------------------------------------------------
|
chown -R liveuser:liveuser "$LIVEUSER_HOME/.local"
|
||||||
# Nur im Live-System behalten
|
|
||||||
# ------------------------------------------------------------
|
|
||||||
if ! grep -q 'boot=live' /proc/cmdline; then
|
|
||||||
rm -f /usr/share/applications/install-to-disk.desktop
|
|
||||||
fi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user