Files
sig-cloud-instance-build/openvz/openvz-7.ks
2014-06-18 12:48:40 +01:00

108 lines
2.6 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-latest/
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
@Core
openssh-clients
openssh-server
yum
yum-utils
man
wget
sudo
tar
passwd
-aic94xx-firmware
-alsa-firmware
-alsa-tools-firmware
-efibootmgr
-ethtool
-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
-selinux-policy
-selinux-policy-targeted
-sudo
-upstart
-xorg-x11-drv-ati-firmware
-zd1211-firmware
%end
%post
# cleanup unwanted stuff
yum -y remove grub2 grub2-tools grubby centos-logos plymouth plymouth-scripts kernel
# Remove /boot, as that is not required
rm -rf /boot
# Create fstab file, which is required for VZ installtions
cat > /etc/fstab << __FSTAB__
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
__FSTAB__
# GMT to be default, but change for requirement
ln -sf /usr/share/zoneinfo/GMT /etc/localtime
# Copy the yum config to the system
cp $tmpyumconf $installroot/etc/yum.repos.d/centos.repo
# GMT to be default, but change for requirement
cp -f /usr/share/zoneinfo/GMT /etc/localtime
# Misc post stuff for VZ
ln -s /proc/mounts /etc/mtab
rm -f /dev/null
mknod -m 600 /dev/console c 5 1
# Add a temporary yum repository to the config
cat > /etc/yum.repo.d/centos.repo << __YUMCONF__
[centos7]
name=centos 7 x86_64
baseurl=http://buildlogs.centos.org/centos/7/os/x86_64-latest/
enabled=1
gpgcheck=0
__YUMCONF__
%end