cdrom installation as default

This commit is contained in:
lukas 2021-07-21 17:01:55 +02:00
parent aa766dfa7c
commit a724dfe8a5

View File

@ -5,13 +5,11 @@
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
# /_/ /____/
# WHAT ? This Kickstart file bootstraps a minimal server-oriented virtual machine.
# 'v' for virtual machine, 'e' for efi, 'm' for minimal, 's' for server, 'd' for development only.
# 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.
# USAGE : Press the `tab` or 'e' key during POST and apend that after the 'quiet' string :
# inst.ks=https://git.phyllo.me/home/kickstart/raw/branch/master/leafs/vemsd.cfg
# A shorter URL can also be used :
# inst.ks=https://url.phyllo.me/vemsd
# inst.ks=https://git.phyllo.me/home/kickstart/raw/branch/master/leaves/vmd.cfg
# ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents.
# Bye bye!
@ -19,10 +17,7 @@
## 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"
cdrom
## INSTALLATION TYPE ##
@ -35,9 +30,6 @@ text
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
repo --name=rpmfusion-free --mirrorlist="https://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-34&arch=x86_64" --includepkgs=rpmfusion-free-release
repo --name=rpmfusion-free-updates --mirrorlist="https://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-updates-released-34&arch=x86_64" --cost=0
## USER RELATED ##
# Set the keyboard layout
@ -107,7 +99,7 @@ pciutils # Pciutils provides lspci commandline tool and is not installed by defa
## POST-INSTALLATION SCRIPT ##
%post --log=/root/ks-post.log ## Start of the %post section with logging into /root/ks-post.log
dnf update -y # Update the system
# dnf update -y # Update the system
localectl set-keymap ch-fr # Set keymap to `ch-fr`. Alternatively, `us` can be picked
sed -i 's/5/1/' /etc/default/grub # set the GRUB_TIMEOUT countdown to 1 instead of 5 seconds. This command could be used bootloader --timeout=1 in the disk section
grub2-mkconfig -o /boot/grub2/grub.cfg # Update grub. How about this command grub2-mkconfig -o /etc/grub2-efi.cfg