a test with an extremely minimal installation

This commit is contained in:
lukas 2021-06-21 16:15:59 +02:00
parent 3f731a0b3b
commit e22caad886

View File

@ -19,31 +19,20 @@
# Configure cdrom as installation method
cdrom
# Working ?
url --url="http://download.fedoraproject.org/pub/fedora/linux/releases/34/Server/x86_64/os"
# Working without the URL
# url --url="http://download.fedoraproject.org/pub/fedora/linux/releases/34/Server/x86_64/os"
## INSTALLATION TYPE ##
# Perform Installation in text mode
text
# Alternatively, start the installation in text mode. -> To be tested
# text
## REPOSITORIES ##
# Add repo and mirror
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
# Add rpmfusion repositories, which provides extra-packages
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
# Uncomment to add-nonfree repositories
# repo --name=rpmfusion-nonfree --mirrorlist="https://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-34&arch=x86_64" --includepkgs=rpmfusion-nonfree-release
# repo --name=rpmfusion-nonfree-updates --mirrorlist="https://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-updates-released-34&arch=x86_64" --cost=0
## USER RELATED ##
# Keyboard layouts -> Doesn't seem to survive a reboot
@ -64,7 +53,7 @@ user --name=test --password=$6$wlB.n8fvumAXv3xn$clVIswjLUjb7MZoJ2JHi1zk1zmx5ViQu
## NETWORK RELATED ##
# Configure Firewall
firewall --enabled
firewall --disabled
# Configure Network Interfaces
network --onboot=yes --bootproto=dhcp --hostname=f34-minimal
@ -72,11 +61,6 @@ network --onboot=yes --bootproto=dhcp --hostname=f34-minimal
# Run the Setup Agent on first boot
firstboot --enable
## SYSTEM RELATED
# Services to enable/disable ## To do
# services --disabled=mlocate-updatedb,mlocate-updatedb.timer,geoclue,avahi-daemon
## DISK RELATED ##
# Only use disk labelled as vda
@ -100,8 +84,54 @@ part / --fstype="ext4" --ondisk=vda --grow --label=system
## SOFTWARE ##
# Install packages for the server environment. 'Core' and 'Base' are always selected
%packages
@^server-product-environment
%packages --excludedocs --nobase
bash
kernel
grub
e2fsprogs
passwd
policycoreutils
chkconfig
rootfiles
yum
vim-minimal
grub2
acpid
nano
dnf
#Allow for dhcp access
dhclient
iputils
# no need for kudzu if the hardware doesn't change
-kudzu
-prelink
-setserial
-ed
# Remove the authconfig pieces
-authconfig
-rhpl
-wireless-tools
# Remove the kbd bits
-kbd
-usermode
# these are all kind of overkill but get pulled in by mkinitrd ordering
-mkinitrd
-kpartx
-dmraid
-mdadm
-lvm2
-tar
# Stuffs to be removed if we want to redistribute as Fedora Remix.
-fedora-logos
generic-logos
-fedora-release-notes
%end
## POST-INSTALLATION SCRIPTS ##
@ -116,10 +146,10 @@ part / --fstype="ext4" --ondisk=vda --grow --label=system
# hostnamectl set-hostname kickstarted-fedora
# Update the system
dnf update -y
# dnf update -y
## We also need to install a qemu guest agent, to allow the host to better interact with the guest
dnf install -y qemu-guest-agent spice-vdagent
# dnf install -y qemu-guest-agent spice-vdagent
# set the GRUB_TIMEOUT countdown to 1 instead of 5 seconds.
sed -i 's/5/1/' /etc/default/grub