#version=F26 # Keyboard layouts keyboard --vckeymap=us --xlayouts='us' # Root password rootpw --iscrypted --lock locked # Use network installation url --url="http://8.131.87.1/kojifiles/output/an-8-6-Beta-ck26/compose/BaseOS/x86_64/os/" # System language lang en_US.UTF-8 # Firewall configuration firewall --disabled repo --name="koji-override-0" --baseurl=http://mirrors.openanolis.cn/anolis/8.4/BaseOS/x86_64/os/ repo --name="koji-override-1" --baseurl=http://mirrors.openanolis.cn/anolis/8.4/AppStream/x86_64/os/ # Shutdown after installation shutdown # Network information network --bootproto=dhcp --device=link --activate network --bootproto=dhcp --hostname=localhost.localdomain # System timezone timezone America/New_York --isUtc # Use text mode install text firstboot --disable # SELinux configuration selinux --disabled # Installation logging level logging --level=info # System services services --enabled="chronyd" # System bootloader configuration bootloader --location=mbr --boot-drive=vda reqpart # Clear the Master Boot Record zerombr # Partition clearing information clearpart --all --initlabel # Disk partitioning information part swap --size=2048 --label=swap part / --asprimary --fstype="ext4" --grow --ondisk=vda --size=10240 --mkfsoptions="-O ^64bit,^metadata_csum" %post mkdir -p /etc/dracut.conf.d echo 'add_drivers+=" nvme ahci mpt2sas mpt3sas "' >>/etc/dracut.conf.d/anolis.conf mkinitrd -f \ --with=nvme --preload=nvme \ /boot/initramfs-$($KERNEL_VERSION).img $(KERNEL_VERSION) cp /boot/initramfs-`uname -r`.img / cp /boot/vmlinuz-`uname -r` / %end %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 %packages --ignoremissing @base @core curl efibootmgr gcc grub2-efi-ia32-modules grub2-efi-x64-modules grub2-pc grub2-tools-efi grubby kernel-4.19.91 ntp shim-ia32 shim-x64 ssh sysstat telnet wget %end