55 lines
2.4 KiB
TOML
55 lines
2.4 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
|
|
# --- 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.
|
|
# reqpart --add-boot: legt /boot + EFI an (bootc braucht separate /boot).
|
|
# autopart --type=btrfs: LVM duerfen bootc-Deployments NICHT verwenden.
|
|
zerombr
|
|
clearpart --all --initlabel --disklabel=gpt
|
|
reqpart --add-boot
|
|
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"
|
|
]
|