# This is a kickstart file for Fedora Core Linux 3 on a # Sun V20z dual Opteron server with 2 36G SCSI drives in a # RAID1 configuration. This box is to be configured as a # firewall with serial console access. Obviously it leaves # a lot of manual configuration left to do. # # Not 100% tested. I believe there were some problems with grub # and I had to boot with the rescue CD and setup grub by hand. # Even with the bugs this file may still be helpful. I'll clean it # up as I find time. # # Dale Bewley # Thu Mar 17 20:56:37 PST 2005 install cdrom # use text mode install text # we don't need X on a firewall skipx lang en_US.UTF-8 langsupport --default=en_US.UTF-8 en_US.UTF-8 keyboard us timezone America/Los_Angeles network --device eth0 --bootproto dhcp network --device eth1 --onboot no --bootproto dhcp firewall --enabled --port=22:tcp # or --disabled if you wish selinux --enforcing authconfig --enableshadow --enablemd5 rootpw password # not sufficient to allow booting for some reason bootloader --location=mbr #Clear the Master Boot Record zerombr yes # nuke all existing partitions clearpart --all --initlabel # /boot on 500M raid1 mirror part raid.a0 --noformat --size=500 --ondisk=sda --asprimary part raid.b0 --noformat --size=500 --ondisk=sdb --asprimary # LVM on >30G raid1 mirror part raid.a1 --noformat --size=30000 --grow --ondisk=sda part raid.b1 --noformat --size=30000 --grow --ondisk=sdb # setup a plain raid1 device for boot raid /boot --level=1 --fstype=ext3 --device=md0 raid.a0 raid.b0 # setup a raid1 physical volume to be split with LVM for all else raid pv.a1b1 --level=1 --fstype="physical volume (LVM)" --device=md1 raid.a1 raid.b1 # setup LVM for OS partitions volgroup VGRAID pv.a1b1 logvol / --fstype=ext3 --name=LVRoot --vgname=VGRAID --size=2048 logvol /opt --fstype=ext3 --name=LVOpt --vgname=VGRAID --size=1024 logvol /var --fstype=ext3 --name=LVVar --vgname=VGRAID --size=6016 logvol /usr --fstype=ext3 --name=LVUsr --vgname=VGRAID --size=4000 logvol /home --fstype=ext3 --name=LVHome --vgname=VGRAID --size=4000 # you may wish to put this on a naked partition rather than in md1 logvol swap --fstype=swap --name=LVSwap --vgname=VGRAID --size=2048 %packages mdadm lvm2 kernel-smp e2fsprogs %post # ready RPM for updates rpm --import /usr/share/doc/fedora-release-3/RPM-GPG-KEY rpm --import /usr/share/doc/fedora-release-3/RPM-GPG-KEY-fedora # configure the serial console here echo ttyS0 >> /etc/securetty echo "S0:12345:respawn:/sbin/agetty 9600 ttyS0 vt102" >> /etc/inittab # fixup grub for serial console. i haven't sed -e \ 's/^hiddenmenu/#hiddenmenu\nserial --unit=0 --speed=9600\nterminal --timeout=5 tty0 serial\n/; \ s/^\(splashimage.*\)/#\1/; \ s/^\(.*LVRoot\)/\1 console=ttyS0,9600 console=tty0/' \ < /boot/grub/grub.conf > grub.tmp mv grub.tmp /boot/grub/grub.conf # setup yum for local mirrors (if you are on the Left coast) cat < /etc/yum.repos.d/local-base.mir # local mirrorlist for US West http://limestone.uoregon.edu/ftp/fedora/$releasever/\$ARCH/os/ http://mirror.stanford.edu/fedora/linux/core/$releasever/\$ARCH/os/ EOF cat < /etc/yum.repos.d/local-updates.mir # local mirrorlist for US West http://limestone.uoregon.edu/ftp/fedora/updates/\$releasever/\$ARCH/ http://mirror.stanford.edu/fedora/linux/core/updates/\$releasever/\$ARCH EOF sed 's!^\(mirrorlist.*\)!#\1\nmirrorlist=file:///etc/yum.repos.d/local-updates.mir!' < /etc/yum.repos.d/fedora-updates.repo > yum.$$.tmp mv yum.$$.tmp /etc/yum.repos.d/fedora-updates.repo sed 's!^\(mirrorlist.*\)!#\1\nmirrorlist=file:///etc/yum.repos.d/local-base.mir!' < /etc/yum.repos.d/fedora.repo > yum.$$.tmp mv yum.$$.tmp /etc/yum.repos.d/fedora.repo