comment out the specifc

The idea is to make the script ouput a vanilla Fedora server
This commit is contained in:
lukas 2021-06-04 10:17:31 +00:00
parent cedc69efdc
commit f9e076a5dd

View File

@ -1,27 +1,26 @@
# Kickstart file that bootstraps a minimal fedora 34 server. # WHAT ? Kickstart file that bootstraps a minimal fedora 34 server, vanilla.
# Made to be small.
# ATTENTION : this script will automatically DESTROY the main virtual disk 'vda' and all of its contents. # ATTENTION : this script will automatically DESTROY the main virtual disk 'vda' and all of its contents.
# Bye bye! # Bye bye!
# ATTENTION : user accounts are password-protected and passwords are crypted in the file. # ATTENTION : user accounts are password-protected and passwords are encrypted in the file.
# Not ready yet for public use. # If you really want to hack it, you can reset the root password of the resulting image with the 'virt-sysprep' tool
# Okay okay, 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. # Do something like virt-sysprep --root-password password: -a thenameofyourdiskimage.img.
# Your password must be added after the semicolon ":" # Your password must be added after the semicolon ":"
# USAGE : Press the `tab` key during POST and apend that after the 'quiet' string : # USAGE : Press the `tab` key during POST and apend that after the 'quiet' string :
# inst.ks=https://git.phyllo.me/home/kickstart/raw/branch/master/f34/main.cfg # inst.ks=https://git.phyllo.me/home/kickstart/raw/branch/master/f34/main.cfg
# Only for development purposes # REQUIRES :
# Requires a 3GB disk image # - Requires a 3GB disk image (tested with QCOW2, may works with most virtio-based storage)
# It expects a BIOS-based virtual machine (no-EFI support). There will be a kickstart file for that (tm) # - Expects a BIOS-based virtual machine (no-EFI support). There will be a kickstart file for that (tm)
# Tested on the Q35 chipset # - Tested on the Q35 virtual chipset (5.2), but may works on i440fx virtual chipsets.
# This kickstart creates two partitions, vda1 for /boot and vda2 for /
# It uses the ext4 filesystem # TLDR :
# It will populate all the available disk space # - This kickstart creates two partitions, vda1 for `/boot` and vda2 for `/`
# After the installation, it will install updates # - It uses the ext4 filesystem
# It will also install the qemu and spice guest agents # - It will populate all the available disk space
# - After the installation, it will install updates
# Originally generated by Anaconda 34.24.9 # Originally generated by Anaconda 34.24.9
# Orginally generated by pykickstart v3.32 # Orginally generated by pykickstart v3.32
@ -123,34 +122,35 @@ part / --fstype="ext4" --ondisk=vda --grow --label=system
## Start of the %post section with logging into /root/ks-post.log ## Start of the %post section with logging into /root/ks-post.log
%post --log=/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 ## Set keymap to ch-fr. ## Doesn't survive a reboot. Or only touches the console
#localectl set-keymap ch-fr #localectl set-keymap ch-fr
# Set new hostname. ##Doesn't work # Set new hostname. ## Doesn't survive a reboot
# hostnamectl set-hostname kickstarted-fedora # hostnamectl set-hostname kickstarted-fedora
# Update the system # Update the system
dnf update -y dnf update -y
# Remove the Headless Management group, which provides Cockpit, and that we don't need ## Remove the Headless Management group, which provides Cockpit, and that we don't need
# dnf groupremove -y "Headless Management"
dnf groupremove -y "Headless Management" ## Remove the Hardware Support group, which provides extra-hardware support beyond linux-firmware
# dnf groupremove -y "Hardware Support"
# Install dejavu mono fonts ## Install dejavu mono fonts. For some reason
# dnf install -y dejavu-sans-mono-fonts # dnf install -y dejavu-sans-mono-fonts
# Install the desktop environment, a terminal and a web browser. Uncomment for VM ## Install the desktop environment, a terminal and a web browser. Uncomment for VM
# dnf install -y gnome-shell gnome-terminal firefox # dnf install -y gnome-shell gnome-terminal firefox
# WPA Supplicant for Linux. Not integrated by default in gnome-shell. Not useful for virtual machine ## WPA Supplicant for Linux. Not integrated by default in gnome-shell. Not useful for virtual machine
# dnf install -y wpa_supplicant # dnf install -y wpa_supplicant
# Set the desktop environment as the default target with systemd. Uncomment for graphical system ## Set the desktop environment as the default target with systemd. Uncomment for graphical system
# systemctl set-default graphical.target # systemctl set-default graphical.target
# We also need to install a qemu and spice guest agents, respectively to allow a better support for spice and the ability for the host to better interact with the guest ## We also need to install a qemu and spice guest agents, respectively to allow a better support for spice and the ability for the host to better interact with the guest
# dnf install -y spice-vdagent qemu-guest-agent
dnf install -y spice-vdagent qemu-guest-agent
# Install virtualization-related utilites, including virt-manager. Only useful for desktop system # Install virtualization-related utilites, including virt-manager. Only useful for desktop system
# dnf groupinstall -y Virtualization # dnf groupinstall -y Virtualization
@ -181,6 +181,7 @@ dnf install -y spice-vdagent qemu-guest-agent
# Update grub # Update grub
# grub2-mkconfig -o /boot/grub2/grub.cfg # grub2-mkconfig -o /boot/grub2/grub.cfg
## Reboot the installer (doesn't work (tm))
reboot reboot
## End of the %post section ## End of the %post section