Last active
August 27, 2018 15:20
-
-
Save mitchellh/7328271 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
text | |
skipx | |
install | |
url --url http://mirror.raystedman.net/centos/6/os/x86_64/ | |
repo --name=updates --baseurl=http://mirror.raystedman.net/centos/6/updates/x86_64/ | |
lang en_US.UTF-8 | |
keyboard us | |
rootpw s0m3password | |
firewall --disable | |
authconfig --enableshadow --passalgo=sha512 | |
selinux --disabled | |
timezone Etc/UTC | |
%include /tmp/kspre.cfg | |
services --enabled=network,sshd/sendmail | |
poweroff | |
%packages --nobase | |
at | |
acpid | |
cronie-noanacron | |
crontabs | |
logrotate | |
mailx | |
mlocate | |
openssh-clients | |
openssh-server | |
rsync | |
sendmail | |
tmpwatch | |
vixie-cron | |
which | |
wget | |
yum | |
-biosdevname | |
-postfix | |
-prelink | |
%end | |
%pre | |
bootdrive=vda | |
if [ -f "/dev/$bootdrive" ] ; then | |
exec < /dev/tty3 > /dev/tty3 | |
chvt 3 | |
echo "ERROR: Drive device does not exist at /dev/$bootdrive!" | |
sleep 5 | |
halt -f | |
fi | |
cat >/tmp/kspre.cfg <<CFG | |
zerombr | |
bootloader --location=mbr --driveorder=$bootdrive --append="nomodeset" | |
clearpart --all --initlabel | |
part /boot --ondrive=$bootdrive --fstype ext4 --fsoptions="relatime,nodev" --size=512 | |
part pv.1 --ondrive=$bootdrive --size 1 --grow | |
volgroup vg0 pv.1 | |
logvol / --fstype ext4 --fsoptions="noatime,nodiratime,relatime,nodev" --name=root --vgname=vg0 --size=4096 | |
logvol swap --fstype swap --name=swap --vgname=vg0 --size 1 --grow | |
CFG | |
%end | |
%post | |
%end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment