starting to link kickstart together, the base ks for guests system is velsd.cfg

This commit is contained in:
lukas
2021-06-30 20:29:43 +02:00
parent eadae554c4
commit e1ba6ead62
8 changed files with 47 additions and 308 deletions

View File

@@ -10,33 +10,11 @@
# 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/bensd.cfg
# Or the shorter version (to be tested)
# inst.ks=url.phyllo.me/bensd.cfg
# ATTENTION : this kickstart file will automatically DESTROY the main NVME disk and all of its contents.
# Bye bye!
# ATTENTION : user accounts are password-protected and passwords are encrypted in the present kickstart file.
# 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 ":". See here for more information : https://libguestfs.org/virt-sysprep.1.html
# REQUIRES :
# - Requires a 5GB disk image (tested with QCOW2 and RAW images)
# - Expects an EFI-based virtual machine.
# - Tested on the Q35 virtual chipset (5.2).
# TLDR :
# - This kickstart creates three partitions, nvme0n1p1 for `/boot` nvme0n1p2 for `/boot/efi` and nvme0n1p3 for `/`
# - It uses the ext4 filesystem
# - It will populate all the available disk space
# - After the installation, it will install updates
# - When installed on a bare-metal machine, the vanilla version should create a fully-updated system with 614 packages (`dnf list --installed | wc -l`)
# Originally generated by Anaconda 34.24.9
# Orginally generated by pykickstart v3.32
#version=DEVEL
## INSTALLATION TYPE ##
# Perform Installation in Graphical Mode
@@ -62,8 +40,8 @@ repo --name=rpmfusion-free-updates --mirrorlist="https://mirrors.rpmfusion.org/m
## USER RELATED ##
# Keyboard layouts
# keyboard --vckeymap=fr-ch --xlayouts='fr-ch'
# Set the keyboard layout
keyboard --xlayouts='ch (fr)'
# Set the system language to American English
lang en_US.UTF-8
@@ -71,16 +49,16 @@ lang en_US.UTF-8
# System timezone
timezone Europe/Paris --utc
# Set root password and activate the account
# Set dummy encrypted root password and activate the root account
rootpw --iscrypted $6$2rA58L/SQu5.xMTb$u8.zqBWE5bK1/N983qDpJEp41yg66GwQ3YVTpsRghVhNiZypWyo2Zq2Qwr2tCM3bt50mKMIgHzbPdtSq9ErPz.
# Create user account
# Create "test" user account
user --name=test --password=$6$wlB.n8fvumAXv3xn$clVIswjLUjb7MZoJ2JHi1zk1zmx5ViQuzbVkLYf70SDan5hdqI0tUkc89nHE8pVnHStO4mcl3c1Tk0WJvCet1. --iscrypted --gecos="test"
## NETWORK RELATED ##
# Configure Firewall
firewall --enabled
firewall --disabled
# Configure Network Interfaces
network --onboot=yes --bootproto=dhcp --hostname=bensd.cfg
@@ -88,11 +66,6 @@ network --onboot=yes --bootproto=dhcp --hostname=bensd.cfg
# 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 nvme0n1