############################################# # Copyright (C) 2009 by Cisco Systems, Inc. # # All rights reserved. # ############################################# install text url --url http://192.168.56.1/~nick/ACS reboot lang en_US.UTF-8 langsupport --default en_US.UTF-8 en_US.UTF-8 firewall --disabled mouse none skipx network --device eth0 --bootproto dhcp keyboard us rootpw cisco123 authconfig --enableshadow --enablemd5 timezone UTC bootloader --location=mbr --append "selinux=0 quiet" selinux --disabled clearpart --linux part / --fstype ext3 --size=100 --grow part /localdisk --fstype ext3 --size=5120 part /recovery --fstype ext3 --size=1008 part /storedconfig --fstype ext3 --size=981 part /storeddata --fstype ext3 --size=2048 part swap --size=2048 %packages @ everything # @ Core # @ Base grub e2fsprogs kernel kernel-smp %pre %post open -c 8 bash echo "" echo "***** ACS EVALUATION INSTALLATION" > /dev/console echo "" echo "EVAL-60g-iso" > /etc/EVAL-60g echo "Cisco ADE-OS (Application Deployment Engine OS)" > /etc/gpce-version echo "Cisco ADE-OS Platform VERSION INFORMATION --------------------------------------------- Build Version: 1.2.0.146 " > /etc/gpce-release echo "1.2.0.146" > /etc/ade-version rm -f /etc/issue rm -f /etc/issue.net chkconfig kudzu off chkconfig sshd off chkconfig sendmail off chkconfig rpcidmapd off chkconfig setup on chkconfig firewall on chkconfig install_apps off chkconfig smartd off # Rattle the loader's cage /sbin/ldconfig # Redirect startup messages to /dev/null sed -i -e 's/^\(si.*rc.sysinit\)/\1 > \/dev\/null 2>\&1/' /etc/inittab sed -i -e 's/^\(l.:.:.*\)/\1 > \/dev\/null 2>\&1/' /etc/inittab # Fix the boot output echo "ADEVER=`cat /etc/gpce-release | grep '^Build Version' | awk '{ print $3}'`" >> /etc/rc.d/rc.sysinit echo "echo \"Booting Cisco ADE-OS Version: \$ADEVER ...\" > /dev/tty1" >> /etc/rc.d/rc.sysinit # Make the cdrom mount point consistent perl -spi -e 's/cdrecorder/cdrom/' /etc/fstab /bin/grep ttyS0 /etc/inittab || echo "S0:2345:respawn:/sbin/agetty ttyS0 9600 vt100-nav" >> /etc/inittab # Clean up grub entries /opt/system/bin/fix_grub menu.lst /opt/system/bin/fix_grub grub.conf # Disallow grub config from serial console sed -i 's/^\(serial.*\)/#\1/' /boot/grub/grub.conf sed -i 's/^\(terminal.*\)/#\1/' /boot/grub/grub.conf