Files
fluffy-pancake/iso/iso.toml
T

56 lines
2.6 KiB
TOML

# ISO configuration for a bootc-based installer ISO
# --- Kickstart: post-install bootc switch ---
# HINWEIS: lang/keyboard laesst Anaconda u.a. /etc/vconsole.conf schreiben
# (deutsche TTYs). Die :stable-Referenz unten wird beim lokalen ISO-Build
# per Justfile auf $target_image:$tag umgeschrieben (Test-ISOs!).
[customizations.installer.kickstart]
contents = """
# --- Sprache / Tastatur / Zeitzone (Vorauswahl, Localization-Modul aktiv) ---
lang de_DE.UTF-8
keyboard --vckeymap=de --xlayouts='de'
timezone Europe/Berlin --utc
# --- Netzwerk (frueh aktivieren: %post bootc switch braucht Registry-Zugriff) ---
network --bootproto=dhcp --device=link --activate --hostname=fluffy-pancake
# --- Bootloader ---
bootloader --location=mbr
# --- Automatische Partitionierung (bootc-Rezept, passt zu --rootfs=btrfs) ---
# zerombr + clearpart: leere/gebrauchte Platten deterministisch zuruecksetzen,
# sonst bricht Anaconda auf wiederverwendeten Disks ab.
# autopart --type=btrfs: legt /boot + EFI + Btrfs-Root selbst an und
# schliesst LVM aus (LVM duerfen bootc-Deployments NICHT verwenden).
# HINWEIS: reqpart darf NICHT daneben stehen, Anaconda beendet sich sonst
# mit "autopart and reqpart can't be used at the same time".
zerombr
clearpart --all --initlabel --disklabel=gpt
autopart --type=btrfs
%post --log=/root/anaconda-post.log
# Switch to the custom bootc image after installation.
# Absichtlich tolerant (|| true): Das Container-Deployment ist zu diesem
# Zeitpunkt bereits erfolgt. Ohne Netz/Auth (privates Registry, Offline-
# Test) darf ein fehlender Switch die Installation NICHT abbrechen.
bootc switch --mutate-in-place --transport registry humocs-man.duckdns.org/humocs-man/fluffy-pancake:stable || echo "WARN: bootc switch fehlgeschlagen, installiertes Image bleibt aktiv"
%end
"""
# --- Anaconda installer modules ---
# Localization ist bewusst dabei: Nur mit diesem Modul zeigt der Installer
# den Sprachen-/Tastatur-Dialog und schreibt /etc/locale.conf + vconsole.
# Ohne es faellt das System auf C.UTF-8 zurueck (kein Deutsch in Apps).
# Die Kickstart-Werte oben (de_DE, de) dienen als Vorauswahl.
[customizations.installer.modules]
enable = [
"org.fedoraproject.Anaconda.Modules.Storage",
"org.fedoraproject.Anaconda.Modules.Runtime",
"org.fedoraproject.Anaconda.Modules.Network",
"org.fedoraproject.Anaconda.Modules.Security",
"org.fedoraproject.Anaconda.Modules.Services",
"org.fedoraproject.Anaconda.Modules.Users",
"org.fedoraproject.Anaconda.Modules.Timezone",
"org.fedoraproject.Anaconda.Modules.Localization"
]
disable = [
"org.fedoraproject.Anaconda.Modules.Subscription"
]