#platform=x86, AMD64, or Intel EM64T #version=OL8 # Firewall configuration firewall --enabled --service=ssh # Use Oracle Linux yum server repositories as installation source repo --name="ol8_AppStream" --baseurl="https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/" repo --name="ol8_UEKR7" --baseurl="https://yum.oracle.com/repo/OracleLinux/OL8/UEKR7/x86_64/" url --url="https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/x86_64" # Root password #rootpw --iscrypted SHA512_password_hash rootpw ... # Use text only install skipx text firstboot --disable reboot --eject # Keyboard layouts keyboard --vckeymap=us --xlayouts='us' # System language lang en_US.UTF-8 # Note: problems with console font if using anything else ## SELinux configuration #selinux --enforcing ## Installation logging level #logging --level=info # System timezone timezone Asia/Yerevan # Network information network --bootproto=dhcp --onboot=yes --hostname=test-ol8 # System bootloader configuration bootloader --location=mbr --boot-drive=sda ## Non-administrative user #user --name=user --homedir=/home/user --password=SHA512_password_hash --iscrypted # Partition information clearpart --all --initlabel --drives=sda # NO SANE SERVER SYSTEM COULD EVER NEED MORE THAN 2G OF SWAP part swap --size 2047 --ondisk sda part / --fstype ext4 --size 1 --grow --ondisk sda # Disable kdump by default, frees up some memory %addon com_redhat_kdump --disable %end services --disabled="kdump" # Minimal install with a few convenience packages %packages @core qemu-guest-agent tmux mc -iwl7260-firmware -iwl6000-firmware -iwl2030-firmware -iwl1000-firmware -iwlax2xx-firmware -iwl6000g2a-firmware -iwl5150-firmware -iwl3160-firmware -iwl2000-firmware -iwl105-firmware -iwl100-firmware -iwl6050-firmware -iwl5000-firmware -iwl135-firmware -plymouth -rhnsd -rhn-setup -python3-dnf-plugin-spacewalk -dnf-plugin-spacewalk -python3-rhn-client-tools -rhn-client-tools -rhnlib -sssd-client -sssd-common -sssd-kcm -btrfs-progs -bcache-tools %end %post mkdir /root/.ssh echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXg9044dPzASa21RzPZAfN06/vZGAQOHGTmQcPc0fxEd6XFEJKcNwYJy0WRAY6tB1b3UcJeE7+lUjLJORrv4rs0L75qKoucJ+s1b9IegABs4qCW/A6sbanPHI3w7Lw6DYLXVCA1nXqpCnlhjlS3O6KBfbLo1jRAK10v9F0HTGWLm1lN05PT6ItL9WnQ88nrsZ/ON2bC5JyDL/CUxeV9qXIWIelFYkNoGjUM+baoMOb2N7ytuZA17qTkjZTRTQrCgJq19nu2el8/OYdUoIYDDm1ZJVQ/ahebtuobEFyTVMO2SGoL5YgKWHo8P/yCKuN3iWDcu6atwj+JjBjhrqSOxIN merlin@uc-s4m75657" > /root/.ssh/authorized_keys chmod 0700 /root/.ssh chmod 0640 /root/.ssh/authorized_keys %end