Titanoboa setup refined
This commit is contained in:
+22
-13
@@ -1,23 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Läuft im ISO-Rootfs während Titanoboa-Build
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# Minimal notwendige Installer-Komponenten
|
||||
# ------------------------------------------------------------
|
||||
dnf -y install \
|
||||
anaconda \
|
||||
anaconda-live \
|
||||
anaconda-install-env-deps \
|
||||
anaconda-dracut \
|
||||
pykickstart \
|
||||
lorax-templates-generic \
|
||||
|| true
|
||||
|
||||
# Anaconda als Install-UI im Live-System verfügbar machen
|
||||
mkdir -p /etc/anaconda/profile.d
|
||||
cat >/etc/anaconda/profile.d/custom.conf <<'EOF'
|
||||
[Profile]
|
||||
profile_id = custom
|
||||
os_id = custom
|
||||
efi_dir = fedora
|
||||
menu_auto_hide = True
|
||||
# ------------------------------------------------------------
|
||||
# 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;
|
||||
EOF
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# 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