Several changes and simplifications for el8

master
Daniel Berteaud 5 years ago
parent 364862e9b4
commit 1fa58b40b1
  1. 52
      el8.ks

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

Loading…
Cancel
Save