%post --log=/mnt/sysimage/root/post.log # Beginning of the post-installation section. Log all messages to a given file localectl set-keymap ch-fr # Set keymap to `ch-fr`. Alternatively, `us` can be picked. dnf update -y # Update the system grub2-mkconfig -o /boot/grub2/grub.cfg # Unsure it is actually useful %end # End of the %post section