Updated May 20, 2003
Created May 20, 2003


Autogenerated Site Map
Search this Site!:
Search this site powered by FreeFind

Creating the SCU partition during kickstart

* 1st method by using a dd image of the SCU partition
# Kickstart file automatically generated by anaconda.
lang en_US
langsupport --default en_US en_US
keyboard us
mouse --emulthree genericps/2
timezone --utc America/Chicago
rootpw password
#reboot
text
bootloader --location=mbr
install
nfs --server 172.16.0.4 --dir /var/ftp/pub/rh72boxed/i386
clearpart --all --initlabel
network --bootproto dhcp
auth --useshadow --enablemd5
firewall --disabled
xconfig --card "S3 Trio64V2 (generic)" --videoram 1024 --hsync 31.5 --vsync 50-61 --resolution 800x600 --depth 16
#SCU PARTITION HERE:
part /mnt/scu --type 12 --size 7 --asprimary --start=1 --ondrive=hda
part / --fstype ext3 --size=1 --grow --asprimary --maxsize 2500
part swap --size=128
%pre
##
##Notify user they may remove their floppy, wait 5 seconds for user to see message, then continue. (This is before installation)
##
(
for X in 1 2 3 4 5; do echo; done
echo -e "\033[1;32m************************************\033[0;39m"
for X in 1 2 3 4 5; do
        echo -e "\033[1;32m** You may now remove your floppy **\033[0;39m"
done
echo -e "\033[1;32m************************************\033[0;39m"
for X in 1 2 3 4 5; do echo; done
)>/dev/tty1
sleep 5
%packages
@GNOME
@Network Support
@Utilities
@Kernel Development
netscape-common
netscape-navigator
openssh-server
openssh-askpass-gnome
openssh-askpass
vnc
vnc-server
linuxconf
expect
tclx
%post
/usr/sbin/useradd riblack
chfn -f 'riblack' riblack
/usr/sbin/usermod -p 'password_hash_goes_here' riblack


##
##Notify user they may remove their floppy.  This is at beginning of POST installation - stays on screen through entire POST
install.
##
(
for X in `seq 1 25`; do echo -e "\r"; done
echo -e "\r"
for X in 1 2 3 4 5; do echo; done
echo -e "\033[1;32m************************************\033[0;39m\r"
for X in 1 2 3 4 5; do
        echo -e "\033[1;32m** You may now remove your floppy **\033[0;39m\r"
done
echo -e "\033[1;32m************************************\033[0;39m\r"
echo -e "\r"
)>/dev/tty1


##
##Give message stating that POST install may take a while.
##
echo -e "The POST install may take a while to complete, final status will show up here when POST install is completed\r" >/dev/tty1
echo -e "Please wait for the final OK prompt...\r" >/dev/tty1
PRODUCT=DP2000


##
## Automatically set current date and time.  Configure to run ntp service.
##
cd /etc
(cat ntp.conf |
for X in \
172.16.0.5 \
; do
grep -v $X;
echo server $X;
done
)| sed -e 's,^#multicastclient,multicastclient,' >/etc/ntp.conf.1
mv /etc/ntp.conf.1 /etc/ntp.conf
(cat /etc/ntp.conf | grep "^server" | awk '{print $2}' | tr "\n" " " | sed -e 's, *$,,'; echo )> /etc/ntp/step-tickers
chkconfig --level 2345 ntpd on
ps ax | grep -v grep | grep ntpd || (service ntpd start; hwclock --utc --systohc; service ntpd stop)


##
## Get a Date Stamp variable for use in this script.
##
DATE_STAMP="`date`"


##
## Turn on sshd during installation.  Also configure to run at boot time.  Show our ip address.
##
chkconfig --level 2345 sshd on
service sshd start
echo -e "IP Addr: `ifconfig eth0 | grep inet | awk '{print $2}' | sed -e 's,^.*addr:,,'`\r" >/dev/tty1


##
## Modify /etc/fstab for easy mounting of install directory
## in case more packages need to be installed.  Set up for
## NFS, soft mount, no auto mount.
##
mkdir /mnt/install
cat <>/etc/fstab
172.16.0.4:/var/ftp/pub/rh72boxed/i386 /mnt/install  nfs     soft,noauto     0 0
EOF


##
## Starting VNC server for root at boot time. Access by using vncviewer or ip_addr:5801
##
su -c "cd; mkdir .vnc; echo -ne \"\x21\xad\x7e\x0f\x5a\xc4\xe4\x89\" > .vnc/passwd; chmod 0600 .vnc/passwd"
echo "VNCSERVERS=\"1:root\"" >> /etc/sysconfig/vncservers
chkconfig --level 2345 vncserver on
#Fixing rc.sysinit to remove VNC locks
cat /etc/rc.d/rc.sysinit | awk '{gsub("rm -f /tmp/\\.X\\*-lock","rm -f /tmp/.X*-lock\n\n# Delete VNC locks\nrm -rf /tmp/.X*-unix"); print}' >/etc/rc.d/rc.sysinit.1; cat /etc/rc.d/rc.sysinit.1 >/etc/rc.d/rc.sysinit; rm -f /etc/rc.d/rc.sysinit.1
#Fixing /etc/rc.d/init.d/vncserver so that it starts 800x600 sessions
cat /etc/rc.d/init.d/vncserver | awk '{gsub("vncserver :\\${display%%:\\*}\\\\\"\"","vncserver :${display%%:*} -geometry 800x600\\\"\""); print}' >/etc/rc.d/init.d/vncserver.1; cat /etc/rc.d/init.d/vncserver.1 >/etc/rc.d/init.d/vncserver; rm -f /etc/rc.d/init.d/vncserver.1
#Making gnome the default window manager for vnc rather than "twm"
cat /usr/bin/vncserver | sed -e 's,"twm &\\n");,"gnome-session \&\\n");,g' > /tmp/vncserver.tmp; cat /tmp/vncserver.tmp >/usr/bin/vncserver; rm -f /tmp/vncserver.tmp


##
## Use e100 instead of eepro100
##
cat /etc/modules.conf | sed -e 's,eepro100,e100,' > /etc/modules.conf.1
mv /etc/modules.conf.1 /etc/modules.conf


##DP##
##DP## Update the e100 driver
##DP##
#Note - Current eepro100 and e100 are both hanging on these machines.  Downloading compiled driver from Compaq
wget --passive-ftp -N -nd ftp://172.16.0.4/pub/compaq.com/rh72-e100/e100.o
mv e100.o /lib/modules/2.4.7-10/kernel/drivers/net/e100.o


##DP##
##DP## Set up SCU Partition - DP2K
##DP##
cat /etc/fstab | grep -v /mnt/scu > /etc/fstab.1; mv /etc/fstab.1 /etc/fstab
PART=`echo -e "p\nq\n" | fdisk /dev/hda | grep " 1 * 1 " | awk '{print $1}' | sed -e 's,/dev/hda,,'`
echo -e "t\n$PART\n12\np\nw\n" | fdisk /dev/hda
/usr/bin/wget ftp://172.16.0.4/pub/dp2k/dp2k.scu.7M.dd.gz -O - | gunzip >"/dev/hda$PART"
if [ -f /boot/grub/grub.conf ]; then
        echo -e "title Compaq SCU Utilities\n\troot (hd0,`expr $PART - 1`)\n\tchainloader +1" >>/boot/grub/grub.conf
fi
if [ -f /etc/lilo.conf ]; then
        echo -e "other=/dev/sda$PART\n\tlabel=scu\n\ttable=/dev/sda" >>/etc/lilo.conf
        /sbin/lilo
fi
* 2nd method by using a tgz of the SCU partition files -- must handle setting the boot record on this partition:

to be completed at a later date.
It should work basically the same, create the partition 39M of type 12.
then format as type fat
mount it, then dump SCU disks 1 through 4 into there
then don't forget about the MBR on that partition as well -- in DOS this would have been accomplished with "sys.exe"
If you try to populate the MBR of the SCU partition by hand, you can probably just grab the first 512 bytes of the original partition (of an installed box), it should work since there are no partitions within the SCU partition, so this should work just fine. Note: The MBR of the entire drive does contain partition information so caution must be used when working with those kinds of MBRs -- see mbr.html



Search this Site!:
Search this site powered by FreeFind

Homepage: http://www.cpqlinux.com
Site Map: http://www.cpqlinux.com/sitemap.html