# ============================================================
# Kickstart minimal — Rocky Linux 10 (ARM / x86)
# Usage : boot ISO, Tab,
#   inst.ks=http://HOST_IP:8000/ks-minimal.cfg console=ttyS0 console=tty1
# (console=ttyS0 garantit l'affichage sur machine virtuelle ARM/UTM)
# ============================================================

# --- Langue & clavier (required) ---
lang fr_BE.UTF-8
keyboard --xlayouts='be'

# --- Fuseau horaire (required) ---
timezone Europe/Brussels --utc

# --- Mot de passe root (required) ---
# Générer le hash sur :
#   macOS    : openssl passwd -6 'ton_mdp'
#   Linux    : mkpasswd -m sha-512 'ton_mdp'   (dnf install whois)
#   Windows  : openssl passwd -6 'ton_mdp'     (via Git Bash ou WSL)
# ⚠️ REMPLACER par le résultat de la commande ci-dessus
rootpw --iscrypted $6$wf5YPGFJZvgZyYmp$GMwHJZ9EFe1O0cnCKUvAitnHTy0BB7uzY1iiFDszpK/XBRVINhGjjtNssfz2yWhXSO02eZoOYNes1KPvDhxT30


# --- Installation en mode texte ---
text
skipx

# --- Source d'installation (CD/DVD) ---
cdrom

# --- Stockage : tout effacer, partitionnement auto ---
clearpart --all --initlabel
autopart

# --- Réseau : DHCP sur la première interface ---
network --bootproto=dhcp --device=link --onboot=yes --hostname=rocky9-ks

# --- Redémarrer automatiquement après l'installation ---
reboot --eject

# --- Paquets : installation minimale ---
%packages
@^minimal-environment
%end

# --- Post-installation ---
%post --log=/root/ks-post.log
echo "Installation terminée le $(date)" >> /etc/motd
%end
