Skip to content

Instantly share code, notes, and snippets.

@Fodoj Fodoj/centos-cfg-minimal.ks Secret
Last active Sep 20, 2018

Embed
What would you like to do?
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=vda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# Network information
network --bootproto=dhcp --device=eth0 --onboot=yes --ipv6=auto --activate
network --hostname=teaming-demo.localdomain
# Root password
rootpw --iscrypted $6$QoDr6bS9T/vfei.j$cetxu.JRCq3xl3ZvmPDDwWyIrQnlQUJ0zVvT89Wksdp1ALNjGUcBeO27A.hZjqx6cYe6LwfcmcZWhqlaf006V/
# System services
services --enabled="chronyd"
# System timezone
timezone Europe/Berlin --isUtc
# System bootloader configuration
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=vda
autopart --type=lvm
# Partition clearing information
clearpart --none --initlabel
%packages
@^minimal
@core
chrony
kexec-tools
%end
%post --log=/root/grubby.log
/sbin/grubby --update-kernel=ALL --args="console=ttyS0"
mkdir /root/.ssh
echo "PUBLIC_KEY" >> /root/.ssh/authorized_keys
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.