Files
fluffy-pancake/iso/enable_anaconda.sh
T

33 lines
964 B
Bash
Raw Normal View History

2026-03-08 16:11:49 +01:00
#!/usr/bin/env bash
set -euo pipefail
2026-03-08 16:25:59 +01:00
# ------------------------------------------------------------
# Minimal notwendige Installer-Komponenten
# ------------------------------------------------------------
2026-03-08 16:11:49 +01:00
dnf -y install \
anaconda \
pykickstart \
lorax-templates-generic \
|| true
2026-03-08 16:25:59 +01:00
# ------------------------------------------------------------
# Installer-Launcher (nur Live-System)
# ------------------------------------------------------------
cat >/usr/share/applications/install-to-disk.desktop <<'EOF'
[Desktop Entry]
Name=Install to Disk
Comment=Install this system to your computer
Exec=anaconda --liveinst
Icon=system-installer
Terminal=false
Type=Application
Categories=System;
2026-03-08 16:11:49 +01:00
EOF
2026-03-08 16:25:59 +01:00
# ------------------------------------------------------------
# Nur im Live-System behalten
# ------------------------------------------------------------
if ! grep -q 'boot=live' /proc/cmdline; then
rm -f /usr/share/applications/install-to-disk.desktop
fi