# ATTENTION : this kickstart file will automatically DESTROY the main NVME disk and all of its contents.
# Bye bye!
# ATTENTION : user accounts are password-protected and passwords are encrypted in the present kickstart file.
# If you really want to hack it, you can reset the root password of the resulting image with the 'virt-sysprep' tool
# Do something like virt-sysprep --root-password password: -a thenameofyourdiskimage.img.
# Your password must be added after the semicolon ":". See here for more information : https://libguestfs.org/virt-sysprep.1.html
# REQUIRES :
# - Requires a 5GB disk image (tested with QCOW2 and RAW images)
# - Expects an EFI-based virtual machine.
# - Tested on the Q35 virtual chipset (5.2).
# TLDR :
# - This kickstart creates three partitions, nvme0n1p1 for `/boot` nvme0n1p2 for `/boot/efi` and nvme0n1p3 for `/`
# - It uses the ext4 filesystem
# - It will populate all the available disk space
# - After the installation, it will install updates
# - When installed on a bare-metal machine, the vanilla version should create a fully-updated system with 614 packages (`dnf list --installed | wc -l`)
user --name=test --password=$6$wlB.n8fvumAXv3xn$clVIswjLUjb7MZoJ2JHi1zk1zmx5ViQuzbVkLYf70SDan5hdqI0tUkc89nHE8pVnHStO4mcl3c1Tk0WJvCet1. --iscrypted --gecos="test"
# WARNING : Dangerous command ! Will clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel --drives=nvme0n1
# Disk partitioning information.
# Will create an efi partitition of 128 MiB, a boot partition of 350 MiB on disk vda using the ext4 filesystem. The remaining space will be used for root.
part /boot/efi --fstype="efi" --ondisk=nvme0n1 --size=128 --fsoptions="umask=0077,shortname=winnt" --label=efi
part /boot --fstype="ext4" --ondisk=nvme0n1 --size=350 --label=boot
part / --fstype="ext4" --ondisk=nvme0n1 --grow --label=system
## SOFTWARE ##
# Install packages for the server environment. 'Core' and 'Base' are always selected
%packages
@^server-product-environment
%end
## POST-INSTALLATION SCRIPTS ##
## Start of the %post section with logging into /root/ks-post.log
%post --log=/root/ks-post.log
## Set keymap to ch-fr. ## Doesn't survive a reboot. Or only touches the console
#localectl set-keymap ch-fr
# Set new hostname. ## Doesn't survive a reboot
# hostnamectl set-hostname kickstarted-fedora
# Update the system
dnf update -y
# set the GRUB_TIMEOUT countdown to 1 instead of 5 seconds.