# Kickstart file created by Madison Kelly (mkelly@iplink.net) # updates by Scott Sullivan (scott@iplink.net # # For: # Centos 5.6, Labilla Install # # text install url --url=http://10.255.0.35/c5/x86_64/img lang en_US.UTF-8 keyboard us timezone --utc America/Toronto network --device eth0 --bootproto dhcp --onboot yes --hostname new-labzilla.optical-online.com authconfig --enableshadow --passalgo=sha512 --enablefingerprint # Password is 'initial'. rootpw --iscrypted $1$cXw0e6un$XyrS7K2F0nZEoccoRG8CS0 firewall --disabled selinux --disabled firstboot --disable reboot services --disabled NetworkManager,iptables,iptables,ip6tables services --enabled network # This will run whatever was created by the script below. %include /tmp/part-include %packages @admin-tools @base @core @development-libs @development-tools @dialup @editors @gnome-desktop @graphical-internet @network-server @printing @sound-and-video @system-tools @text-internet @base-x keyutils kexec-tools trousers fipscheck device-mapper-multipath imake vnc-server dhcp k3b audit lynx xorg-x11-server-Xnest xorg-x11-server-Xvfb samba samba-client libsmbclient perl-Convert-ASN1 xinetd -gnome-user-docs -alacarte -gok -gnome-audio -esc -gimp-print-utils -im-chooser -gnome-mag -eog -gnome-pilot -orca -evolution -nspluginwrapper -evolution-webcal -ekiga -evolution-connector -totem -cdda2wav -cdparanoia -sound-juicer -rhythmbox -slrn -fetchmail -mutt -cadaver ### Download Labzilla Installer. %post cd /root yum -y update wget "http://10.255.0.35/c5/x86_64/files/labzilla_7.0.3_c5.tar.bz2" wget "http://10.255.0.35/c5/x86_64/files/vmware_and_jit.tar.bz2" tar -xvjf labzilla_7.0.3_c5.tar.bz2 tar -xvjf vmware_and_jit.tar.bz2 %end ### Script to setup partitions. %pre --log=/tmp/ks-preinstall.log #!/bin/sh # Prepare the disks in the script below. It checks '/proc/partitions' to see # what configuration to use. ### Some detection. if grep -q sdb /proc/partitions; then ### /dev/sdX RAID - This should be the majority. # 2-Drive RAID 1 cat >> /tmp/part-include < part raid.21 --ondisk=sda --asprimary --size=4096 part raid.22 --ondisk=sdb --asprimary --size=4096 # Format /boot and /. raid /boot --fstype=ext3 --level=1 --spares=0 --device=md0 raid.01 raid.02 raid / --fstype=ext3 --level=1 --spares=0 --device=md1 raid.11 raid.12 raid swap --fstype=swap --level=1 --spares=0 --device=md2 raid.21 raid.22 END elif grep -q sda /proc/partitions; then ### /dev/sda Single drive, or hardware RAID cat >> /tmp/part-include <> /tmp/part-include <