2.5

Table Of Contents
text
# Firewall configuration
firewall --disabled
# Run the Setup Agent on first boot
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# Installation logging level
logging --level=info
# Use CDROM installation media
# Network information
cdrom
network --bootproto dhcp --device eth0
network --bootproto dhcp --device eth1
# Reboot after installation
reboot
#Root password
rootpw --iscrypted $1$X0Hs3tQw$Zw7.vM.MQfnmRlU4qs9zP/
# SELinux configuration
selinux --enforcing
# System timezone
timezone Etc/GMT
# Install OS instead of upgrade
install
# X Window System configuration information
xconfig --defaultdesktop=GNOME --depth=8 --resolution=800x600
# Disk partitioning information
part / --bytes-per-inode=4096 --fstype "ext3" --grow --ondisk=sda --size=1
part /opt/aurora/oracle --bytes-per-inode=4096 --fstype "ext3" --grow \
--ondisk=sdb --size=1
part /opt/aurora/archive --bytes-per-inode=4096 --fstype "ext3" --grow \
--ondisk=sdc --size=1
part /var --bytes-per-inode=4096 --fstype "ext3" --grow --ondisk=sdd \
-size=1
part /opt/aurora/dbg --bytes-per-inode=4096 --fstype "ext3" --grow \
--ondisk=sde --size=1
%post
/bin/cat >> /etc/issue <<EOF
root login password -- password
EOF
/bin/cat > /root/firstboot.sh <<EOF
mkdir /mnt/cdrom2 /mnt/cdrom3
mount -o loop /dev/cdrom-hdb /mnt/cdrom2
mount -o loop /dev/cdrom-hdc /mnt/cdrom3
/mnt/cdrom2/Redhat/install.sh -i -o /mnt/cdrom3 -v 10.2.0.1.0
umount /mnt/cdrom2
umount /mnt/cdrom3
sed -i '/^#FIRSTBOOT_START#/,/^#FIRSTBOOT_END#/d' /etc/rc.local
EOF
chmod a+x /root/firstboot.sh
/bin/cat >> /etc/rc.local <<EOF
#FIRSTBOOT_START#
echo "Initializing base vm and install Oracle, you can find log in /root/ \
Chapter 4 Building DBVMs and Base DB Templates
VMware, Inc. 51