Date

Boot options for cd install

ks.device=link inst.ks=http://....../ks.cfg

Kickstart itself

#version=RHEL7
# System authorization information
auth --enableshadow --passalgo=sha512

# Use CDROM installation media
cdrom
# Use graphical install
text
# Run the Setup Agent on first boot
firstboot --disable
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8

# Network information
network  --bootproto=dhcp --device=enp0s3 --ipv6=auto --activate
network  --hostname=c7-4.devnull.tl
# Root password
rootpw --iscrypted $6$G6MDXGSJxnPW3ebS$wxgihsjhpV2uxcpFhD8y3CrZ84ylBH/tK5V8Iv12q1ulEJ52arUcHdZHILmizz1udGR5mIeT9KK.Jtnz5XBNy/
# System timezone
timezone Europe/Vilnius --isUtc --nontp
# System bootloader configuration
bootloader --append="tsc=reliable divider=10 plymouth.enable=0"

reboot

# Partition clearing information
ignoredisk --only-use=sda
zerombr
clearpart --drives=sda --all --initlabel
# Disk partitioning information
part /boot --fstype="xfs" --ondisk=sda --size=128
part pv.855 --fstype="lvmpv" --ondisk=sda --size=1 --grow
volgroup root_vg --pesize=4096 pv.855
logvol none  --fstype="None" --size=1 --grow --thinpool --name=pool00 --vgname=root_vg
logvol swap  --fstype="swap" --size=120 --thin --poolname=pool00 --name=swap --vgname=root_vg
logvol /  --fstype="xfs" --size=1600 --thin --poolname=pool00 --name=root --vgname=root_vg

%packages
-microcode_ctl
-ivtv-firmware
-iwl1000-firmware
-NetworkManager-tui
-NetworkManager
-NetworkManager-libnm
-wpa_supplicant
-irqbalance
-firewalld
#-linux-firmware
-btrfs-progs
-iwl2000-firmware
-iwl135-firmware
-iwl6000-firmware
-iwl6050-firmware
-iwl4965-firmware
-iwl105-firmware
-iwl100-firmware
-iwl7260-firmware
-iwl5150-firmware
-iwl3945-firmware
-iwl6000g2a-firmware
-iwl3160-firmware
-iwl2030-firmware
-aic94xx-firmware
-iwl5000-firmware
-iwl6000g2b-firmware
-alsa-firmware
-alsa-tools-firmware
-avahi-autoipd
-avahi-libs
-alsa-lib
-plymouth-scripts
-rdma
-tuned
-libsoup
-glib-networking
-gsettings-desktop-schemas
-plymouth
-plymouth-core-libs
-ebtables
-ppp
-numactl-libs
%end

%addon com_redhat_kdump --disable --reserve-mb='auto'
%end

%post
echo "dracut_rescue_image=\"no\"" > /etc/dracut.conf.d/disable_rescue.conf
find /boot -name "*rescue*" -delete
sed -i -e 's/quiet//g' -e 's/rhgb//g' /etc/sysconfig/grub
grub2-mkconfig -o /boot/grub2/grub.cfg
%end