From 86ff22232e7de36def33cb123caab5535ba81e71 Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 3 Jun 2021 15:42:11 +0000 Subject: [PATCH] Refined the description and add command to remove cockpit --- f34/main.cfg | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/f34/main.cfg b/f34/main.cfg index db94db5..d374e77 100644 --- a/f34/main.cfg +++ b/f34/main.cfg @@ -1,15 +1,27 @@ -# ATTENTION : user accounts are password-protected. Not ready yet for public use. -# Kickstart that installs a fedora 34 server in a VM with relatively sensible defaults. -# Only for development purposes -# Compatible with BIOS only (no-EFI support). -# Create a single vda2 root partition for the entire system. -# Will populate the available space. -# Install updates. -# Install qemu and spice guest agents. -# ATTENTION : will automatically destroy the main virtual disk 'vda' and all of its contents. Bye bye! +# Kickstart file that bootstraps a minimal fedora 34 server. +# Made to be small. + +# ATTENTION : this script will automatically DESTROY the main virtual disk 'vda' and all of its contents. +# Bye bye! + +# ATTENTION : user accounts are password-protected and passwords are crypted in the file. +# Not ready yet for public use. +# 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. +# Your password must be added after the semicolon ":" + # 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 +# Only for development purposes +# Requires a 3GB disk image +# It expects a BIOS-based virtual machine (no-EFI support). There will be a kickstart file for that (tm) +# Tested on the Q35 chipset +# This kickstart creates two partitions, vda1 for /boot and vda2 for / +# It uses the ext4 filesystem +# It will populate all the available disk space +# After the installation, it will install updates +# It will also install the qemu and spice guest agents # Originally generated by Anaconda 34.24.9 # Orginally generated by pykickstart v3.32 @@ -120,6 +132,10 @@ part / --fstype="ext4" --ondisk=vda --grow --label=system # Update the system dnf update -y +# Remove the Headless Management group, which provides Cockpit, and that we don't need + +dnf remove groupremove "Headless Management" + # Install dejavu mono fonts # dnf install -y dejavu-sans-mono-fonts @@ -162,7 +178,7 @@ dnf install spice-vdagent qemu-guest-agent -y # echo "kvmgt" > /etc/modules-load.d/kvmgt.conf # echo "vfio-mdev" > /etc/modules-load.d/vfio-mdev.conf -# Update grub (for some reason it doesn't update grub after the update) +# Update grub # grub2-mkconfig -o /boot/grub2/grub.cfg reboot