Skip to content

Instantly share code, notes, and snippets.

@drew-holt

drew-holt/fedora27.ks

Last active Jan 25, 2018
Embed
What would you like to do?
# https://docs.fedoraproject.org/f27/install-guide/appendixes/Kickstart_Syntax_Reference.html
# Configure installation method
install
url --mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-27&arch=x86_64"
repo --name=fedora-updates --mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f27&arch=x86_64" --cost=100
# zerombr
zerombr
# Configure Boot Loader
bootloader --location=mbr --driveorder=sda
# Create Physical Partition
# part /boot --size=512 --asprimary --ondrive=sda --fstype=xfs # keeping everything in /
# part swap --size=10240 --ondrive=sda --encrypted --passphrase=awesomePassword # will create a swapfile
part / --size=8192 --grow --asprimary --ondrive=sda --fstype=ext4
# Remove all existing partitions
clearpart --all --drives=sda
# Configure Firewall
firewall --enabled --ssh
# Configure Network Interfaces
network --onboot=yes --bootproto=dhcp --hostname=drew-serv
# Configure Keyboard Layouts
keyboard us
# Configure Language During Installation
lang en_US
# Configure Time Zone
timezone America/Denver
# Configure Authentication
auth --passalgo=sha512
# Create User Account
user --name=drew --password=temppassword --plaintext --groups=wheel
# Set Root Password
rootpw --lock
# Perform Installation in Text Mode
text
# Package Selection
%packages
@core
@standard
@hardware-support
vim
irssi
nmap
tcpdump
ansible
strace
wireshark
%end
# Post-installation Script
%post
# Need to write post scripts
%end
# Reboot After Installation
reboot --eject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment