# Minimal Disk Image # # Firewall configuration firewall --enabled # Use network installation url --url="http://mirror.pnl.gov/fedora/linux/releases/20/Everything/x86_64/os/" repo --name=updates --baseurl="http://mirror.pnl.gov/fedora/linux/updates/20/x86_64/" # Root password rootpw --plaintext removethispw # Network information network --bootproto=dhcp --onboot=on --activate # System authorization information auth --useshadow --enablemd5 # System keyboard keyboard --xlayouts=us --vckeymap=us # System language lang en_US.UTF-8 # SELinux configuration selinux --enforcing # Installation logging level logging --level=info # Shutdown after installation shutdown # System timezone timezone US/Eastern # System bootloader configuration bootloader --location=mbr # Clear the Master Boot Record zerombr # Partition clearing information clearpart --all # Disk partitioning information part / --fstype="ext4" --size=4000 part swap --size=1000 xconfig --startxonboot %post # Update everything yum clean all yum -y update useradd stack usermod -G wheel -a stack echo stack | passwd stack --stdin # Remove root password passwd -d root > /dev/null # fstab from the install won't match anything. remove it and let dracut # handle mounting. cat /dev/null > /etc/fstab # This is a huge file and things work ok without it rm -f /usr/share/icons/HighContrast/icon-theme.cache # create /etc/sysconfig/desktop (needed for installation) cat > /etc/sysconfig/desktop <> /etc/fstab tmpfs /mnt tmpfs rw 0 0 EOF # Clean up answers file rm -f ~/instack.answers popd # this goes at the end after all other changes. chown -R stack:stack /home/stack restorecon -R /home/stack # disable os-collect-config rm -f /etc/systemd/system/multi-user.target.wants/os-collect-config.service # disable crond so that os-refresh-config on boot job does not start rm -f /etc/systemd/system/multi-user.target.wants/crond.service # need to reinstall anaconda yum -y install anaconda # firewalld is installed back by anaconda, so we must totally disable it. rm '/etc/systemd/system/basic.target.wants/firewalld.service' rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service' %end %packages @core kernel memtest86+ grub2-efi grub2 shim syslinux anaconda git firefox ucs-miscfixed-fonts bitmap-fixed-fonts #@virtualization @xfce-desktop # @xfce-apps # @xfce-extra-plugins # @xfce-media # @xfce-office @base-x # @guest-desktop-agents # @standard @input-methods @hardware-support # unlock default keyring. FIXME: Should probably be done in comps gnome-keyring-pam -dracut-config-rescue -dnf # Try to get around the broken dep during the instack install around # glibc-devel, adding packages manually here. libffi-devel gcc python-devel openssl-devel libxml2-devel libxslt-devel %end