mirror of
https://github.com/PhyllomeOS/phyllomeos.git
synced 2024-08-23 04:51:16 +00:00
164 lines
4.2 KiB
INI
164 lines
4.2 KiB
INI
# __ ____ ____ _____
|
|
# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/
|
|
# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \
|
|
# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ /
|
|
# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/
|
|
# /_/ /____/
|
|
|
|
# WHAT ? This Kickstart file that bootstraps a minimal fedora 34 server.
|
|
# 'v' for virtual machine, 's' for server, 'm' for minimal, 'e' for efi, 'd' for development.
|
|
|
|
# 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/f34/vsmed.cfg
|
|
|
|
# ATTENTION : this kickstart file will automatically DESTROY the main virtual disk 'vda' and all of its contents.
|
|
# Bye bye!
|
|
|
|
## INSTALLATION SOURCE ##
|
|
|
|
# Configure cdrom as installation method
|
|
cdrom
|
|
|
|
# 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
|
|
|
|
## 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
|
|
|
|
## USER RELATED ##
|
|
|
|
# Keyboard layouts -> Doesn't seem to survive a reboot
|
|
keyboard fr-ch
|
|
|
|
# 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 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=f34-minimal
|
|
|
|
# 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
|
|
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 ##
|
|
|
|
## Start of the %post section with logging into /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
|
|
#localectl set-keymap ch-fr
|
|
|
|
# Set new hostname. ## Doesn't survive a reboot
|
|
# hostnamectl set-hostname kickstarted-fedora
|
|
|
|
# Update the system
|
|
# 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
|
|
|
|
# set the GRUB_TIMEOUT countdown to 1 instead of 5 seconds.
|
|
sed -i 's/5/1/' /etc/default/grub
|
|
|
|
# Update grub
|
|
grub2-mkconfig -o /boot/grub2/grub.cfg
|
|
|
|
## Reboot the installer (doesn't work (tm))
|
|
reboot
|
|
|
|
## End of the %post section
|
|
%end |