# Kickstart file for springdalelinux 9 lang en_US.UTF-8 keyboard us network --bootproto=dhcp --noipv6 --onboot=on --device=eth0 rootpw --plaintext vagrant firewall --disabled selinux --permissive timezone UTC bootloader --timeout=1 --location=mbr --append="net.ifnames=0 biosdevname=0" text skipx zerombr clearpart --all --initlabel autopart --nohome --nolvm --noboot firstboot --disabled reboot --eject user --name=vagrant --plaintext --password vagrant url --url="http://springdale.princeton.edu/data/springdale/9/x86_64/os" repo --name="BaseOS" --baseurl=http://springdale.princeton.edu/data/springdale/9/x86_64/os/BaseOS repo --name="Updates_BaseOS" --baseurl=http://springdale.princeton.edu/data/springdale/9/x86_64/os/Updates_BaseOS repo --name="AppStream" --baseurl=http://springdale.princeton.edu/data/springdale/9/x86_64/os/AppStream repo --name="Updates_AppStream" --baseurl=http://springdale.princeton.edu/data/springdale/9/x86_64/os/Updates_AppStream %packages --ignoremissing --excludedocs @^server-product-environment openssh-clients sudo selinux-policy-devel wget nfs-utils net-tools tar bzip2 deltarpm rsync dnf-utils redhat-lsb-core elfutils-libelf-devel network-scripts -fprintd-pam -intltool -iwl*-firmware -microcode_ctl %end %post # sudo echo 'Defaults:vagrant !requiretty' > /etc/sudoers.d/vagrant echo '%vagrant ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/vagrant chmod 440 /etc/sudoers.d/vagrant # Enable hyper-v daemons only if using hyper-v virtualization if [ $(virt-what) == "hyperv" ]; then dnf -y install hyperv-daemons cifs-utils systemctl enable hypervvssd systemctl enable hypervkvpd fi # Since we disable consistent network naming, we need to make sure the eth0 # configuration file is in place so it will come up. # Delete other network configuration first because RHEL/C7 networking will not # restart successfully if there are configuration files for devices that do not # exist. rm -f /etc/sysconfig/network-scripts/ifcfg-e* cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << _EOF_ TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=dhcp DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=eth0 DEVICE=eth0 ONBOOT=yes _EOF_ %end