Hello Ya'all:<div><br></div><div>Thank you all for the kind responses so far. Below is my kickstart (so far) - it is intended to be an automated install. Basically, the %pre finds the USB key, and sets it as the "install from" drive, and based on this sets the "install to" drive. The "install to" drive and network configuration currently works, however the "install from" harddrive statement does not, even though the USB key is properly detected. It would be great if the USB device was the same Linux short device name on every system, but it's not. Today, I am going to modify the script so it attempts other devices, other than hda, sda, and sdb. One of our customers' systems going to IBC the week after next has 73 drives, and the USB key shows up last. I'd like to keep the kickstart as light and fluffy as possible...</div>

<div><br></div><div>Lance</div><div><br></div><div><div># Kickstart file</div><div><br></div><div>%include /tmp/inst-include</div><div>install</div><div>key --skip</div><div>lang en_US.UTF-8</div><div>keyboard us</div><div>

skipx</div><div><br></div><div>rootpw --iscrypted $1$kt/7H6d3$g96NCQCYIJL.bIF7/FEJh/</div><div>firewall --disabled</div><div>authconfig --useshadow --enablemd5</div><div>selinux --disabled</div><div>timezone America/Tijuana</div>

<div><br></div><div>%packages</div><div>@core</div><div><br></div><div>%pre</div><div>#!/bin/bash</div><div><br></div><div>INSTALLFROM='sda5'</div><div>INSTALLTO='hda'</div><div><br></div><div>touch /tmp/inst-include</div>

<div>if test -e '/sys/block/hda' ; then</div><div>   ls -l /sys/block/hda/device | grep /usb</div><div>   if [ $? -neq 0 ] ; then</div><div>      INSTALLFROM='hda5'</div><div>      INSTALLTO='sda'</div>

<div>   fi</div><div>fi</div><div>if test -e '/sys/block/sda' ; then</div><div>   ls -l /sys/block/sda/device | grep /usb</div><div>   if [ $? -neq 0 ] ; then</div><div>      INSTALLFROM='sda5'</div><div>
      if test -e '/sys/block/hda' ; then</div>
<div>         INSTALLTO='hda'</div><div>      else</div><div>         INSTALLTO='sdb'</div><div>      fi</div><div>   fi</div><div>fi</div><div>if test -e '/sys/block/sdb' ; then</div><div>   ls -l /sys/block/sdb/device | grep /usb</div>

<div>   if [ $? -neq 0 ] ; then</div><div>      INSTALLFROM='sdb5'</div><div>      if test -e '/sys/block/hda' ; then</div><div>         INSTALLTO='hda'</div><div>      else</div><div>         INSTALLTO='sda'</div>

<div>      fi</div><div>   fi</div><div>fi</div><div>NICPORTS=0</div><div>if test -e '/sys/class/net/eth0' ; then</div><div>   NICPORTS=1</div><div>fi</div><div>if test -e '/sys/class/net/eth1' ; then</div>

<div>   NICPORTS=2</div><div>fi</div><div><br></div><div>echo 'harddrive --partition='$INSTALLFROM' --dir=/' >>/tmp/inst-include</div><div><br></div><div>if [ $NICPORTS -gt 0 ] ; then</div><div>   if [ $NICPORTS -eq 1 ] ; then</div>

<div>      echo 'network --device eth0 --bootproto static --ip 192.168.1.129 --netmask 255.255.255.0 --gateway 192.168.1.1 --nameserver None --hostname mybox' >>/tmp/inst-include</div><div>   else</div><div>

      echo 'network --device eth0 --bootproto dhcp --hostname mybox' >>/tmp/inst-include</div><div>      echo 'network --device eth1 --bootproto static --ip 192.168.1.129 --netmask 255.255.255.0 --gateway 192.168.1.1 --nameserver None --hostname mybox' >>/tmp/inst-include</div>

<div>   fi</div><div>fi</div><div><br></div><div>echo 'bootloader --location=mbr --driveorder='$INSTALLTO' --append="rhgb quiet crashkernel=128M@16M"' >>/tmp/inst-include</div><div>echo 'clearpart --all --drives='$INSTALLTO >>/tmp/inst-include</div>

<div>echo 'part /boot --fstype ext3 --size=100 --ondisk='$INSTALLTO >>/tmp/inst-include</div><div>echo 'part pv.100000 --size=0 --grow --ondisk='$INSTALLTO >>/tmp/inst-include</div><div>echo 'volgroup VolGroup00 --pesize=32768 pv.100000' >>/tmp/inst-include</div>

<div>echo 'logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=384 --grow --maxsize=768' >>/tmp/inst-include</div><div>echo 'logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow' >>/tmp/inst-include</div>

<div>%end</div></div><div><br></div>