Titanoboa setup refined
This commit is contained in:
@@ -22,6 +22,7 @@ jobs:
|
|||||||
image-ref: ghcr.io/${{ github.repository }}:stable
|
image-ref: ghcr.io/${{ github.repository }}:stable
|
||||||
builder-distro: fedora
|
builder-distro: fedora
|
||||||
hook-post-rootfs: ${{ github.workspace }}/iso/enable_anaconda.sh
|
hook-post-rootfs: ${{ github.workspace }}/iso/enable_anaconda.sh
|
||||||
|
kargs: "boot=live inst.live"
|
||||||
|
|
||||||
- name: Rename + checksum
|
- name: Rename + checksum
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
+22
-13
@@ -1,23 +1,32 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# Läuft im ISO-Rootfs während Titanoboa-Build
|
# ------------------------------------------------------------
|
||||||
|
# Minimal notwendige Installer-Komponenten
|
||||||
|
# ------------------------------------------------------------
|
||||||
dnf -y install \
|
dnf -y install \
|
||||||
anaconda \
|
anaconda \
|
||||||
anaconda-live \
|
|
||||||
anaconda-install-env-deps \
|
|
||||||
anaconda-dracut \
|
|
||||||
pykickstart \
|
pykickstart \
|
||||||
lorax-templates-generic \
|
lorax-templates-generic \
|
||||||
|| true
|
|| true
|
||||||
|
|
||||||
# Anaconda als Install-UI im Live-System verfügbar machen
|
# ------------------------------------------------------------
|
||||||
mkdir -p /etc/anaconda/profile.d
|
# Installer-Launcher (nur Live-System)
|
||||||
cat >/etc/anaconda/profile.d/custom.conf <<'EOF'
|
# ------------------------------------------------------------
|
||||||
[Profile]
|
cat >/usr/share/applications/install-to-disk.desktop <<'EOF'
|
||||||
profile_id = custom
|
[Desktop Entry]
|
||||||
os_id = custom
|
Name=Install to Disk
|
||||||
efi_dir = fedora
|
Comment=Install this system to your computer
|
||||||
menu_auto_hide = True
|
Exec=anaconda --liveinst
|
||||||
|
Icon=system-installer
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=System;
|
||||||
EOF
|
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