<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>RHEL5 kickstart overwrites USB</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:#606420;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink="#606420">

<div class=Section1>

<div>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Are you sure the system is seeing the USB
as sd(a,b,c)1?  Add a sleep to your %pre, get a shell, and take a look.</span></font><font
color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
kickstart-list-bounces@redhat.com [mailto:kickstart-list-bounces@redhat.com] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Hajducko, Steven<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, October 11, 2007
3:47 PM<br>
<b><span style='font-weight:bold'>To:</span></b> kickstart-list@redhat.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> RHEL5 kickstart
overwrites USB</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Hi,</span></font>
<o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family: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.</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>We
place the kickstart file on the USB drive, drop in a RHEL5 DVD and run:</span></font>
<o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>linux
ks=hd:sda1:/hostname.cfg</span></font> <o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family: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 :</span></font><o:p></o:p></p>

<p><font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>stha3155@ghost:/media/usb$
ls</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family: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</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Upon
reboot of the system, it crashes with a bunch of OPCODE errors.</span></font> <o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family: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.. )</span></font><o:p></o:p></p>

<p><font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>install</span></font>
<br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>cdrom</span></font>
<br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>lang
en_US</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>langsupport
--default=en_US en_US</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>keyboard
us</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>skipx</span></font>
<br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>text</span></font>
<br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>ignoredisk
--drives=sda1,sdb1,sdc1</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>network
--device eth0 --bootproto static --ip 192.168.27.17 --netmask 255.255.255.0
--hostname hostname.domain.com</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>network
--device eth1 --onboot no</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>rootpw
--iscrypted #####</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>firewall
--disabled</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>authconfig
--enableshadow --enablemd5</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>timezone
America/Los_Angeles</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>selinux
--disabled</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>zerombr
yes</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>bootloader
--location=mbr --append="rhgb quiet"</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>reboot</span></font>
<br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>clearpart
--all</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>part
/boot --fstype ext3 --size=128 --asprimary</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>part
swap --size=6912 --asprimary</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>part
pv.01 --size=100 --grow</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>volgroup
rootvg pv.01</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>logvol
/ --fstype ext3 --vgname=rootvg --size=512 --name=rootlv</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>logvol
/tmp --fstype ext3 --vgname=rootvg --size=1024 --name=tmplv</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>logvol
/var --fstype ext3 --vgname=rootvg --size=1024 --name=varlv</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>logvol
/opt --fstype ext3 --vgname=rootvg --size=2048 --name=optlv</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>logvol
/home --fstype ext3 --vgname=rootvg --size=2048 --name=homelv</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>logvol
/usr --fstype ext3 --vgname=rootvg --size=2048 --name=usrlv</span></font> <br>
<font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>logvol
/usr/local --fstype ext3 --vgname=rootvg --size=2048 --name=locallv</span></font>
<o:p></o:p></p>

<p><font size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>%packages</span></font>
<o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family: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.</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Any
input would be appreciated.</span></font> <o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Thanks.</span></font>
<o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>--</span></font>
<br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>sh</span></font>
<o:p></o:p></p>

</div>

</body>

</html>