#version=F26 # Keyboard layouts keyboard --vckeymap=us --xlayouts='us' # Root password rootpw --iscrypted --lock locked # Use network installation url --url="http://koji.openanolis.cn/kojifiles/output/product/an-7-9-GA/anolis-7-20211207.5/compose/os/x86_64/os" # System language lang en_US.UTF-8 # Firewall configuration firewall --disabled repo --name="koji-override-0" --baseurl=http://172.16.0.137/packages/repos/image-anolis-build/1663/x86_64 # 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 /boot --asprimary --fstype="ext4" --ondisk=vda --size=256 part /boot/efi --asprimary --fstype="efi" --ondisk=vda --size=256 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) %end %post echo 338535 > /etc/.build-id %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 chrony curl efibootmgr gcc grub2-efi-aa64 grub2-efi-ia32 grub2-efi-x64 grub2-pc grubby kernel-3.10.0 openssh-server shim sysstat telnet wget %end