diff --git a/f34/vdmed.cfg b/f34/vdmed.cfg index 8d291c5..327a020 100644 --- a/f34/vdmed.cfg +++ b/f34/vdmed.cfg @@ -16,19 +16,116 @@ # ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents. # Bye bye! -# doesnt-work ! TM -# doesnt-work ! TM -# doesnt-work ! TM -# doesnt-work ! TM +## INSTALLATION SOURCE ## +# Configure the cdrom as the installation method +cdrom +# Set URL +url --url="http://download.fedoraproject.org/pub/fedora/linux/releases/34/Server/x86_64/os" -# Call the base minimal installation script for Fedora Remix 34. -%include ../vsmed.cfg +## INSTALLATION TYPE ## -## End of the %post section - -%packages -# -initial-setup -# -initial-setup-gui -%end \ No newline at end of file +# Perform Installation in text mode +text + +## REPOSITORIES ## + +# Add mirro and repo +url --mirrorlist="https://mirrors.fedoraproject.org/metalink?repo=fedora-34&arch=x86_64" +repo --name=fedora-updates --mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f34&arch=x86_64" --cost=0 + +## USER RELATED ## + +# Keyboard layouts -> Doesn't seem to survive a reboot +keyboard --xlayouts='ch (fr)' + +# Set the system language to American English +lang en_US.UTF-8 + +# System timezone +timezone Europe/Paris --utc # Pour Paris ! + +# Set root password and activate the account +rootpw --iscrypted $6$2rA58L/SQu5.xMTb$u8.zqBWE5bK1/N983qDpJEp41yg66GwQ3YVTpsRghVhNiZypWyo2Zq2Qwr2tCM3bt50mKMIgHzbPdtSq9ErPz. + +# Create "test" user account +user --name=test --password=$6$wlB.n8fvumAXv3xn$clVIswjLUjb7MZoJ2JHi1zk1zmx5ViQuzbVkLYf70SDan5hdqI0tUkc89nHE8pVnHStO4mcl3c1Tk0WJvCet1. --iscrypted --gecos="test" + +## NETWORK RELATED ## + +# Configure Firewall +firewall --disabled + +# Configure Network Interfaces +network --onboot=yes --bootproto=dhcp --hostname=vdmed + +# Run the Setup Agent on first boot +firstboot --enable + +## DISK RELATED ## + +# Only use disk labelled as vda +ignoredisk --only-use=vda + +# System bootloader configuration +bootloader --location=mbr + +# WARNING : Dangerous command ! Will clear the Master Boot Record +zerombr + +# Partition clearing information +clearpart --all --initlabel --drives=vda + +# 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=vda --size=128 --fsoptions="umask=0077,shortname=winnt" --label=efi +part /boot --fstype="ext4" --ondisk=vda --size=350 --label=boot +part / --fstype="ext4" --ondisk=vda --grow --label=system + +## SOFTWARE ## + +# Install packages for the server environment. 'Core' and 'Base' are always selected +%packages +@core + +## Desktop-related packages to create a minimal desktop environment + +gnome-shell # Minimal GNOME environement +gnome-terminal +-gnome-tour # We don't want GNOME-tour to open at launch so we delete it +nautilus # Default File explorer for Gnome +gnome-terminal-nautilus # Terminal integration for Nautilus +firefox # Internet browser +elementary-wallpapers-gnome.noarch # Gorgeous wallpapers +dejavu-sans-mono-fonts # the gnome-shell package doesn't include much fonts by default, resulting in weird spacings in gnome-terminal. +wpa_supplicant # WPA Supplicant for Linux. Not integrated by default in gnome-shell, but necessary to configure wireless networks through the Network Manager. + +qemu-guest-agent # Install software to allow the host to better interact with the guest (can't find the spice-vdagent package) +# spice-vdagent + +-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 + +## POST-INSTALLATION SCRIPTS ## + +## Start of the %post section with logging into /root/ks-post.log +%post --log=/root/ks-post.log + +localectl set-keymap ch-fr # Set keymap to `ch-fr`. Alternatively, `us` can be picked + +# dnf update -y # Update the system + +systemctl set-default graphical.target # Set the desktop environment as the default booting target with systemd + +dnf install -y spice-vdagent # Try to install spice-vdagent after the installation is done + +sed -i 's/5/1/' /etc/default/grub # set the GRUB_TIMEOUT countdown to 1 instead of 5 seconds. + +grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub + +reboot # Reboot the installer (doesn't work (tm)) + +%end # End of the %post section