Skip to content

Instantly share code, notes, and snippets.

@aleks-mariusz
Last active July 26, 2018 18:06
Show Gist options
  • Save aleks-mariusz/f01f3177a13f1e86e4088e5b6c7f278d to your computer and use it in GitHub Desktop.
Save aleks-mariusz/f01f3177a13f1e86e4088e5b6c7f278d to your computer and use it in GitHub Desktop.
got centos 7.5 down to about 180 packages - around 600 meg installed, note: i removed xfsprogs because i'm using ext2, if you use xfs you may want to remove e2fs* instead
install
skipx
text
eula --agreed
lang en_US.UTF-8
keyboard us
timezone Europe/London
# Use network installation
url --url=http://10.12.120.70/dist/centos/7.5.1804/os/x86_64/
#network --bootproto=dhcp --device=eth0 --activate
network --device eth0 --bootproto static --ip 10.12.100.131 --netmask 255.255.255.0 --gateway 10.12.100.254 --nameserver 10.12.120.100 --noipv6 --hostname k8lab1bs
services --enabled=network,sshd
firstboot --disable
selinux --disabled
rootpw password
authconfig --enableshadow --passalgo=sha512
logging --level=info
ignoredisk --only-use=vda
bootloader --location=mbr --boot-drive=vda
zerombr
clearpart --all --initlabel
#autopart --type=plain --nolvm
part /boot --fsoptions="noatime" --size=128
part / --size 1 --grow
reboot
%packages --nobase
@core --nodefaults
-aic94xx-firmware*
-alsa-*
-audit
-bind-libs-lite
-bind-license
-biosdevname
-btrfs-progs*
-chrony
-dbus-python
-dhclient
-dhcp-common
-dhcp-libs
-dracut-network
-dracut-config-rescue
-ethtool
-firewalld
-firewalld-filesystem
-GeoIP
-gettext
-gettext-libs
-gobject-introspection
-groff-base
-iprutils
-ipset
-ipset-libs
-iptables
-irqbalance
-ivtv*
-iwl*firmware
-kbd*
-less
-libcroco
-libertas*
-libpipeline
-lvm2-libs
-kexec-tools
-kernel-tools
-kernel-tools-libs
-man-db
-microcode_ctl
-numactl-libs
-NetworkManager*
-parted
-pciutils-libs
-plymouth*
-postfix
-pygobject3-base
-python-configobj
-python-decorator
-python-firewall
-python-slip*
-python-perf
-rdma
-selinux-*
-slang
-teamd
-tuned
-virt-what
%end
%post
yum remove -y acl authconfig newt newt-python linux-firmware
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment