126 lines
2.9 KiB
Plaintext
126 lines
2.9 KiB
Plaintext
install
|
|
#url --url=http://mirror.centos.org/centos/7/os/x86_64/
|
|
url --url=http://buildlogs.centos.org/centos/7/os/x86_64-20140614/
|
|
lang en_GB.UTF-8
|
|
keyboard uk
|
|
network --device eth0 --bootproto dhcp
|
|
rootpw --iscrypted $1$UKLtvLuY$kka6S665oCFmU7ivSDZzU.
|
|
authconfig --enableshadow --passalgo=sha512 --enablefingerprint
|
|
selinux --enforcing
|
|
timezone --utc Europe/London
|
|
skipx
|
|
#repo --name="CentOS" --baseurl=http://mirror.centos.org/centos/7/os/x86_64/ --cost=100
|
|
#repo --name="Updates" --baseurl=http://mirror.centos.org/centos-7/7/updates/x86_64/ --cost=100
|
|
# CentOSPlus is here ONLY for a libselinux patch.
|
|
# Once 6.6 is released, this should be removed
|
|
# http://lists.centos.org/pipermail/centos-devel/2014-May/010345.html
|
|
#repo --name="CentOSPlus" --baseurl=http://mirror.centos.org/centos-7/7/centosplus/x86_64/ --cost=1000
|
|
|
|
clearpart --all --initlabel
|
|
part / --fstype ext4 --size=1024 --grow
|
|
reboot
|
|
%packages --excludedocs --nobase
|
|
openssh-clients
|
|
openssh-server
|
|
yum
|
|
yum-utils
|
|
man
|
|
wget
|
|
sudo
|
|
tar
|
|
passwd
|
|
-aic94xx-firmware
|
|
-alsa-firmware
|
|
-alsa-tools-firmware
|
|
-cronie
|
|
-dhclient
|
|
-efibootmgr
|
|
-ethtool
|
|
-iproute
|
|
-iptables
|
|
-iputils
|
|
-ivtv-firmware
|
|
-iwl100-firmware
|
|
-iwl105-firmware
|
|
-iwl135-firmware
|
|
-iwl1000-firmware
|
|
-iwl2000-firmware
|
|
-iwl2030-firmware
|
|
-iwl3160-firmware
|
|
-iwl3945-firmware
|
|
-iwl4965-firmware
|
|
-iwl5000-firmware
|
|
-iwl5150-firmware
|
|
-iwl6000-firmware
|
|
-iwl6000g2a-firmware
|
|
-iwl6000g2b-firmware
|
|
-iwl6050-firmware
|
|
-iwl7260-firmware
|
|
-kbd
|
|
-libertas-sd8686-firmware
|
|
-libertas-sd8787-firmware
|
|
-libertas-usb8388-firmware
|
|
-libertas-usb8388-olpc-firmware
|
|
-linux-firmware
|
|
-postfix
|
|
-policycoreutils
|
|
-rsyslog
|
|
-selinux-policy
|
|
-selinux-policy-targeted
|
|
-sudo
|
|
-upstart
|
|
-vim-minimal
|
|
-xorg-x11-drv-ati-firmware
|
|
-zd1211-firmware
|
|
%end
|
|
|
|
%post
|
|
# cleanup unwanted stuff
|
|
|
|
# ami-creator requires grub during the install, so we remove it (and
|
|
# its dependencies) in %post
|
|
rpm -e grub2 grub2-tools grubby centos-logos plymouth plymouth-scripts
|
|
rm -rf /boot
|
|
|
|
# some packages get installed even though we ask for them not to be,
|
|
# and they don't have any external dependencies that should make
|
|
# anaconda install them
|
|
rpm -e MAKEDEV ethtool upstart initscripts iputils policycoreutils iptables \
|
|
iproute
|
|
|
|
# Remove kernel, as it's not required for openvz installations
|
|
rpm -e kernel
|
|
|
|
# Remove files that are known to take up lots of space but leave
|
|
# directories intact since those may be required by new rpms.
|
|
|
|
# locales
|
|
find /usr/{{lib,share}/{i18n,locale},{lib,lib64}/gconv,bin/localedef,sbin/build-locale-archive} \
|
|
-type f | xargs /bin/rm
|
|
|
|
# man pages and documentation
|
|
find /usr/share/{man,doc,info,gnome/help} \
|
|
-type f | xargs /bin/rm
|
|
|
|
# cracklib
|
|
find /usr/share/cracklib \
|
|
-type f | xargs /bin/rm
|
|
|
|
# sln
|
|
rm -f /sbin/sln
|
|
|
|
# ldconfig
|
|
rm -rf /etc/ld.so.cache
|
|
rm -rf /var/cache/ldconfig/*
|
|
|
|
# fstab
|
|
cat > /etc/fstab << __FSTAB__
|
|
none /dev/pts devpts rw,gid=5,mode=620 0 0
|
|
none /dev/shm tmpfs defaults 0 0
|
|
__FSTAB__
|
|
|
|
# Timezone
|
|
cp -f /usr/share/zoneinfo/GMT /etc/localtime
|
|
|
|
%end
|