Several changes and simplifications for el8

This commit is contained in:
Daniel Berteaud 2019-09-25 12:39:24 +02:00
parent 364862e9b4
commit 1fa58b40b1
1 changed files with 8 additions and 46 deletions

54
el8.ks
View File

@ -1,12 +1,9 @@
auth --enableshadow --passalgo=sha512
url --url="http://mirror.centos.org/centos/8/BaseOS/x86_64/os/"
cmdline
skipx
timezone Europe/Paris --isUtc
keyboard --vckeymap=fr-oss --xlayouts='fr (oss)'
lang fr_FR.UTF-8
services --enabled ntpd
firewall --enabled --service ssh
network --bootproto=dhcp --activate --noipv6
rootpw --iscrypted $6$6OYBD0R8xuGsqAUl$KVHVrjCM6VmLR13TW0exHAl4toKHxQTd9zwbuYzR/t79heCMrAcVmtBmw0wCcNu5zoz1y3LzwdIZjNedRlz7Y/
zerombr
@ -14,6 +11,7 @@ bootloader --location mbr --append 'ipv6.disable=1'
# Enable fws and epel
# FWS not available yet
# repo --name=fws --baseurl=http://repo.firewall-services.com/centos/8
repo --name=AppStream --baseurl=http://mirror.centos.org/centos/8/AppStream/x86_64/os/
repo --name=epel --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-8&arch=x86_64
%include /tmp/ks.partitions
@ -22,47 +20,12 @@ user --name=ansible --shell /bin/bash --gecos="Ansible Account"
reboot
%packages --ignoremissing
%packages
@^minimal-environment
epel-release
crontabs
dhclient
irqbalance
ntp
openssh-server
passwd
prelink
rootfiles
selinux-policy-targeted
tmpwatch
yum
mailx
net-tools
openssh-clients
rsync
screen
sudo
sysstat
vim
strace
pbzip2
xz
pxz
iftop
wget
tcpdump
pciutils
nc
lsof
htop
-iprutil
-kernel-tools
-kexec-tools
-microcode_ctl
-parted
-NetworkManager
-NetworkManager-tui
-*-firmware
-b43-openfwwf
screen
vim
%end
@ -81,11 +44,10 @@ touch /tmp/ks.partitions
# Select first drive
main_drive=$(list-harddrives | awk '$2>=8704 {print $1; nextfile}')
ignore=$(echo $(list-harddrives | awk '$1!="'$main_drive'" {print $1}') | sed -e 's| |,|g')
[ ! -z "$ignore" ] && echo "ignoredisk --drives $ignore" >> /tmp/ks.partitions
cat << _EOF >> /tmp/ks.partitions
clearpart --all --initlabel --drives $main_drive
part /boot --fstype xfs --size 1024 --ondrive $main_drive
ignoredisk --only-use=$main_drive
clearpart --all --initlabel
part /boot --fstype xfs --size 1024
part swap --fstype swap --size 512
part / --fstype xfs --size 7168 --grow
_EOF