#version=RHEL8 # Use graphical install graphical repo --name="BaseOS" --baseurl="http://10.30.60.229/cobbler/ks_mirror/AnolisOS-8.6-x86_64-dvd-x86_64/BaseOS" repo --name="AppStream" --baseurl="http://10.30.60.229/cobbler/ks_mirror/AnolisOS-8.6-x86_64-dvd-x86_64/AppStream" repo --name="Plus" --baseurl="http://10.30.60.229/cobbler/ks_mirror/AnolisOS-8.6-x86_64-dvd-x86_64/Plus" %packages @^minimal-environment bpftool-4.19.91 kernel-4.19.91 kernel-devel-4.19.91 kernel-headers-4.19.91 kernel-tools-4.19.91 kexec-tools perf-4.19.91 python3-perf-4.19.91 -bpftool-4.18.0 -kernel-4.18.0 -kernel-devel-4.18.0 -kernel-headers-4.18.0 -kernel-tools-4.18.0 -perf-4.18.0 -python3-perf-4.18.0 %end # Keyboard layouts keyboard --xlayouts='cn' # System language lang en_US.UTF-8 # Network information network --bootproto=static --device=ens3 --gateway=10.30.60.254 --ip=10.30.60.16 --netmask=255.255.255.0 --ipv6=auto --activate network --hostname=localhost # Use CDROM installation media url --url="http://10.30.60.229/cobbler/ks_mirror/AnolisOS-8.6-dvd-x86_64/" # Run the Setup Agent on first boot firstboot --enable ignoredisk --only-use=vda autopart # Partition clearing information clearpart --none --initlabel # System timezone timezone Asia/Shanghai --isUtc # Root password rootpw --iscrypted $6$rounds=20008$AvX8b.ccr0V3gPa2$67rWqLRTjwhbsRuBWZ3YbGxbWOf.7gJi4PvrB78zQkTE60B6ejc8SPF3eOar24OXicXs6YFwODpGdjqQzgWI11 reboot %addon com_redhat_kdump --enable --reserve-mb='auto' %end %anaconda pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty %end