Their are a couple of issues with Kickstart on 6.1, and the docs from
RedHat (on-line and printed) have at least one major error.  With a 
couple of caveats, 6.0 kickstart scripts work fine.

First the error:  the documentation says that for English the language
specification line should be

   lang en

when in fact the correct line is

   lang en_US

An interesting side-note; the printed Reference manual has KickStart as
Chapter 9, the on-line manual has it as Chapter 10.  Why?

The other major caveat is that the package names and makeups have changed.
If you list a package with an incorrect name then anaconda, the python
install script, blows apart and you get an exception (6.0 and before would
just tell you that there was a package name that could not be found; they
need to do some debugging and error trapping in anaconda to make it
useful).

A couple more problems where KickStart does not work as before and varies
from the documented behavior:  X configuration will only setup for a
640x480 resolution/8 bpp, so I call Xconfiguration in the %post section 
so I do end up with a 1024x768/16 bpp  configuration.  The other error is
that the lilo config no longer includes an "other" entry for an existing
WinTel partition, so I add to lilo.conf and run lilo in the %post section
to fix that.

Here is my now fully debugged KickStart script for 6.1:

-------------------------------------------------------------------------

lang en_US

network --bootproto static --ip 192.168.100.61 --netmask 255.255.192.0
--gateway 192.168.100.1 --nameserver 192.168.100.68

# eventually, we'll allow cdrom kickstarts
nfs --server mercury.resonate.com --dir /linux/i386

# keymap to use, same as keymap named in kbdconfig
keyboard us

#
# zerombr yes|no
#
# Should the install automatically zero the partition table if it is corrupt?
#
zerombr yes

#
# clearpart - requires --all or --linux
#
# --all   removes everything from ALL DRIVES
# --linux removes all linux native/swap from ALL DRIVES
#
clearpart --linux

#
# part <mntpt> --size <size in megs> [--grow] [--maxsize <size in megs>]
#
part / --size 250
part /usr --size 1000
part swap --size 130

# this should be install or upgrade, defaults to 'install' if omitted
install

# mouse types are: ps/2 mousesystems microsoft logitech atibm logibm msbm
# the default device is right for busmice, /dev/cua0 for serial mice, and
# can be overridden with "--device cua2"
# if three button emulation is needed, specify "--emulthree"
#
# this is just like /usr/sbin/mouseconfig
mouse genericps/2

# the timezone command takes the same args as /usr/sbin/timeconfig
# see the timeconfig 2.0 man page for details
timezone --utc "US/Pacific"

# xconfiguration
#   Video card selection:
#       You can let it try to find you PCI card automatically, OR
#       specify --card <cardtype> (see Xconfigurator --help for list), OR
#       specify --server <servertype> (also see Xconfigurator --help)
#
#   Monitor selection:
#       If none specified, assumes 640x480@60hz.
#       Otherwise, use --monitor <type>, see Xconfigurator --help for list, OR
#       use --hsync <hsync> and --vsync <vsync>. For example:
#          --hsync "31.5,35.5,50-65" --vsync "50-70"
#
#
xconfig --server SVGA --monitor "ViewSonic PS790" 

# this root password goes over the network in the clear for NFS kickstarts
# it's probably a good idea not to use the real root password here
#
# if the password is already crypted (and suitable for inclusion in 
# /etc/passwd without further editing), use the iscrypted flag. this
# should be used to prevent a cleartext root password from going over
# the network
rootpw ShootMe4

auth --enablenis --nisdomain resonate-inc.com 

# lilo install goes to mbr by default w/ no append line. you can modify
# this as shown in the example
#    lilo --append "mem=128M" --location mbr
# the location is one of mbr (default), none, or partition
# this command is called 'silo' on the sparc, and doesn't exist on the alpha

lilo --location mbr

# packges to install follow here
# '@ component' may be used to include entire components, redundant items
# are okay
%packages
@ Base
@ Printer Support
@ X Window System
@ KDE
@ Mail/WWW/News Tools
@ Networked Workstation
@ Anonymous FTP Server
@ Web Server
@ Development
@ Kernel Development
minicom
autofs
xosview

%post
# # move home directory
mv /home /home.orig
# 
mkdir /mnt/fserver
mount -t nfs 192.168.100.30:/shared /mnt/fserver
cd /
tar xzf /mnt/fserver/linux/apache.tar.gz
umount /mnt/fserver
# 
rm -f /etc/rc.d/rc3.d/S13ypbind
rm -f /etc/rc.d/rc3.d/S80sendmail
ln -s /etc/rc.d/init.d/autofs /etc/rc.d/rc3.d/S74autofs
# 
echo "/root/newpass" >> /etc/rc.d/rc.local
echo "KDE" >> /etc/sysconfig/desktop 
chmod 0644 /etc/sysconfig/desktop

/usr/X11R6/bin/Xconfigurator --kickstart --server SVGA --monitor "ViewSonic PS790"

echo "other=/dev/hda1" >> /etc/lilo.conf
echo "    label=winnt" >> /etc/lilo.conf
lilo



-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to