2021-06-30 15:37:20 +00:00
# __ ____ ____ _____
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
# /_/ /____/
2021-07-21 15:01:55 +00:00
# WHAT ? This kickstart file bootstraps a minimal virtual machine based on Fedora 34 server.
# 'v' for virtual machine, 'm' for minimal, 'd' for development only.
2021-06-30 15:37:20 +00:00
# USAGE : Press the `tab` or 'e' key during POST and apend that after the 'quiet' string :
2021-07-21 15:01:55 +00:00
# inst.ks=https://git.phyllo.me/home/kickstart/raw/branch/master/leaves/vmd.cfg
2021-06-30 15:37:20 +00:00
# ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents.
# Bye bye!
2021-07-21 15:10:30 +00:00
cdrom # Configure the cdrom as the installation method
text # Perform Installation in text mode
2021-06-30 15:37:20 +00:00
2021-07-22 13:51:17 +00:00
keyboard --xlayouts = 'ch (fr)' # set keyboard layouts for Romandie
lang en_US.UTF-8 # Set system language to American English
timezone Europe/Paris --utc # Set System timezone to Paris
2021-06-30 15:37:20 +00:00
# Set dummy encrypted root password and activate the root account
2021-07-21 15:30:45 +00:00
rootpw --iscrypted $6$2rA58L/SQu5.xMTb$u8.zqBWE5bK1/N983qDpJEp41yg66GwQ3YVTpsRghVhNiZypWyo2Zq2Qwr2tCM3bt50mKMIgHzbPdtSq9ErPz.
2021-06-30 18:29:43 +00:00
# Create "test" user account
2021-07-21 15:30:45 +00:00
user --name = test --password=$6$wlB.n8fvumAXv3xn$clVIswjLUjb7MZoJ2JHi1zk1zmx5ViQuzbVkLYf70SDan5hdqI0tUkc89nHE8pVnHStO4mcl3c1Tk0WJvCet1. --iscrypted --gecos="test"
2021-06-30 15:37:20 +00:00
2021-07-21 20:32:00 +00:00
firewall --enabled # Make sure the firewall is enabled
2021-07-21 15:30:45 +00:00
network --onboot = yes --bootproto=dhcp --hostname=vmd # Configure network interfaces and set hostname
2021-06-30 15:37:20 +00:00
2021-07-21 15:30:45 +00:00
ignoredisk --only-use = vda # Only use disk labelled as vda
zerombr # WARNING : Dangerous command ! Will clear the Master Boot Record
clearpart --all --initlabel --drives = vda # Partition clearing information. This setup uses GPT by default.
part /boot/efi --fstype = "efi" --ondisk=vda --size=128 --fsoptions="umask=0077,shortname=winnt" --label=efi # Will create an efi partitition of 128 MiB (vda1)
part /boot --fstype = "ext4" --ondisk=vda --size=384 --label=boot # Create a boot partition of 384 MiB using the ext4 filesystem (vda2).
part / --fstype = "ext4" --ondisk=vda --grow --label=root # The remaining space will be used for root (vda3).
bootloader --timeout = 1 # Set the bootloader timeout to 1
2021-06-30 15:37:20 +00:00
2021-07-21 15:30:45 +00:00
%packages # Beginning of the packages section
2021-07-21 15:47:03 +00:00
@core # minimal installation
2021-07-21 15:30:45 +00:00
@guest-agents # qemu-guest agent
pciutils # Pciutils provides lspci commandline tool and is not installed by default
# -fedora-logos # To be removed if we want to redistribute as Fedora Remix.
# -fedora-release-notes # To be removed if we want to redistribute as Fedora Remix.
%end # End of the packages section
2021-06-30 15:37:20 +00:00
2021-07-21 15:30:45 +00:00
%post # Beginning of the post-installation section
2021-07-22 13:51:17 +00:00
# localectl set-keymap ch-fr # Set keymap to `ch-fr`. Alternatively, `us` can be picked. Doesn't seem to survive the installation
2021-07-21 20:38:22 +00:00
# firstboot --reconfig kickstart # To launch the initial setup after the first boot
2021-06-30 15:37:20 +00:00
%end # End of the %post section