<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>RHEL5 kickstart overwrites USB</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">So we're running into a strange issue where a kickstart from a USB/CDROM combo on an HP DL385 G5 system is actually installing and reformatting the USB stick.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">We place the kickstart file on the USB drive, drop in a RHEL5 DVD and run:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">linux ks=hd:sda1:/hostname.cfg</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">The installation goes fine and our packages are installed, but upon reboot and examining the USB stick, it has been reformatted to ext3 FS and contains :</FONT></P>

<P><FONT SIZE=2 FACE="Courier">stha3155@ghost:/media/usb$ ls</FONT>

<BR><FONT SIZE=2 FACE="Courier">config-2.6.18-8.el5  grub  initrd-2.6.18-8.el5.img  lost+found  symvers-2.6.18-8.el5.gz  System.map-2.6.18-8.el5  vmlinuz-2.6.18-8.el5</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Upon reboot of the system, it crashes with a bunch of OPCODE errors.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">The relevant part of our kickstart looks like this ( we don't do anything tricky in our packages or post install, just touch a few config files.. )</FONT></P>

<P><FONT SIZE=2 FACE="Courier">install</FONT>

<BR><FONT SIZE=2 FACE="Courier">cdrom</FONT>

<BR><FONT SIZE=2 FACE="Courier">lang en_US</FONT>

<BR><FONT SIZE=2 FACE="Courier">langsupport --default=en_US en_US</FONT>

<BR><FONT SIZE=2 FACE="Courier">keyboard us</FONT>

<BR><FONT SIZE=2 FACE="Courier">skipx</FONT>

<BR><FONT SIZE=2 FACE="Courier">text</FONT>

<BR><FONT SIZE=2 FACE="Courier">ignoredisk --drives=sda1,sdb1,sdc1</FONT>

<BR><FONT SIZE=2 FACE="Courier">network --device eth0 --bootproto static --ip 192.168.27.17 --netmask 255.255.255.0 --hostname hostname.domain.com</FONT>

<BR><FONT SIZE=2 FACE="Courier">network --device eth1 --onboot no</FONT>

<BR><FONT SIZE=2 FACE="Courier">rootpw --iscrypted #####</FONT>

<BR><FONT SIZE=2 FACE="Courier">firewall --disabled</FONT>

<BR><FONT SIZE=2 FACE="Courier">authconfig --enableshadow --enablemd5</FONT>

<BR><FONT SIZE=2 FACE="Courier">timezone America/Los_Angeles</FONT>

<BR><FONT SIZE=2 FACE="Courier">selinux --disabled</FONT>

<BR><FONT SIZE=2 FACE="Courier">zerombr yes</FONT>

<BR><FONT SIZE=2 FACE="Courier">bootloader --location=mbr --append="rhgb quiet"</FONT>

<BR><FONT SIZE=2 FACE="Courier">reboot</FONT>

<BR><FONT SIZE=2 FACE="Courier">clearpart --all</FONT>

<BR><FONT SIZE=2 FACE="Courier">part /boot --fstype ext3 --size=128 --asprimary</FONT>

<BR><FONT SIZE=2 FACE="Courier">part swap --size=6912 --asprimary</FONT>

<BR><FONT SIZE=2 FACE="Courier">part pv.01 --size=100 --grow</FONT>

<BR><FONT SIZE=2 FACE="Courier">volgroup rootvg pv.01</FONT>

<BR><FONT SIZE=2 FACE="Courier">logvol / --fstype ext3 --vgname=rootvg --size=512 --name=rootlv</FONT>

<BR><FONT SIZE=2 FACE="Courier">logvol /tmp --fstype ext3 --vgname=rootvg --size=1024 --name=tmplv</FONT>

<BR><FONT SIZE=2 FACE="Courier">logvol /var --fstype ext3 --vgname=rootvg --size=1024 --name=varlv</FONT>

<BR><FONT SIZE=2 FACE="Courier">logvol /opt --fstype ext3 --vgname=rootvg --size=2048 --name=optlv</FONT>

<BR><FONT SIZE=2 FACE="Courier">logvol /home --fstype ext3 --vgname=rootvg --size=2048 --name=homelv</FONT>

<BR><FONT SIZE=2 FACE="Courier">logvol /usr --fstype ext3 --vgname=rootvg --size=2048 --name=usrlv</FONT>

<BR><FONT SIZE=2 FACE="Courier">logvol /usr/local --fstype ext3 --vgname=rootvg --size=2048 --name=locallv</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier">%packages</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Tried putting the 'ignoredisk' option in order to ignore the sda1 disk that the USB shows up as, but no luck.  As a side note, the disks on the HP show up as /dev/cciss/c0d0.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Any input would be appreciated.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thanks.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">--</FONT>

<BR><FONT SIZE=2 FACE="Arial">sh</FONT>
</P>

</BODY>
</HTML>