<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD><TITLE>RHEL5 kickstart overwrites USB</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR><!--[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]-->
<STYLE>@font-face {
        font-family: Courier;
}
@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: #606420; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: #606420; TEXT-DECORATION: underline
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle18 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=#606420 link=blue>
<DIV dir=ltr align=left><SPAN class=456255422-11102007><FONT face=Arial 
color=#0000ff size=2>Yeah, we're sure.  The only thing on the USB drive is 
the kickstart file and you can see the kickstart successfully locate and pick up 
the configuration file off the USB stick.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=456255422-11102007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=456255422-11102007><FONT face=Arial 
color=#0000ff size=2>I'll add the sleep to the %pre and see if there is anything 
else I can watch but I'm positive that anaconda is picking up the configuration 
file from sda1.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=456255422-11102007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=456255422-11102007><FONT face=Arial 
color=#0000ff size=2>--</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=456255422-11102007><FONT face=Arial 
color=#0000ff size=2>sh</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> kickstart-list-bounces@redhat.com 
[mailto:kickstart-list-bounces@redhat.com] <B>On Behalf Of </B>Shabazian, 
Chip<BR><B>Sent:</B> Thursday, October 11, 2007 3:53 PM<BR><B>To:</B> Discussion 
list about Kickstart<BR><B>Subject:</B> RE: RHEL5 kickstart overwrites 
USB<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<DIV>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">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 face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P></DIV>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; 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 face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi,</SPAN></FONT> <o:p></o:p></P>
<P><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; 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 face=Arial size=2><SPAN style="FONT-SIZE: 10pt; 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 face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">linux 
ks=hd:sda1:/hostname.cfg</SPAN></FONT> <o:p></o:p></P>
<P><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; 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 face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">stha3155@ghost:/media/usb$ 
ls</SPAN></FONT> <BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; 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 face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; 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 face=Arial size=2><SPAN style="FONT-SIZE: 10pt; 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 face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">install</SPAN></FONT> <BR><FONT 
face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">cdrom</SPAN></FONT> <BR><FONT 
face=Courier size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">lang 
en_US</SPAN></FONT> <BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">langsupport --default=en_US 
en_US</SPAN></FONT> <BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">keyboard us</SPAN></FONT> 
<BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">skipx</SPAN></FONT> <BR><FONT 
face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">text</SPAN></FONT> <BR><FONT 
face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">ignoredisk 
--drives=sda1,sdb1,sdc1</SPAN></FONT> <BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; 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 face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">network --device eth1 --onboot 
no</SPAN></FONT> <BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">rootpw --iscrypted 
#####</SPAN></FONT> <BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">firewall --disabled</SPAN></FONT> 
<BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">authconfig --enableshadow 
--enablemd5</SPAN></FONT> <BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">timezone 
America/Los_Angeles</SPAN></FONT> <BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">selinux --disabled</SPAN></FONT> 
<BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">zerombr yes</SPAN></FONT> 
<BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">bootloader --location=mbr 
--append="rhgb quiet"</SPAN></FONT> <BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">reboot</SPAN></FONT> <BR><FONT 
face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">clearpart --all</SPAN></FONT> 
<BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">part /boot --fstype ext3 
--size=128 --asprimary</SPAN></FONT> <BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">part swap --size=6912 
--asprimary</SPAN></FONT> <BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">part pv.01 --size=100 
--grow</SPAN></FONT> <BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">volgroup rootvg 
pv.01</SPAN></FONT> <BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">logvol / --fstype ext3 
--vgname=rootvg --size=512 --name=rootlv</SPAN></FONT> <BR><FONT face=Courier 
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">logvol /tmp --fstype 
ext3 --vgname=rootvg --size=1024 --name=tmplv</SPAN></FONT> <BR><FONT 
face=Courier size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">logvol 
/var --fstype ext3 --vgname=rootvg --size=1024 --name=varlv</SPAN></FONT> 
<BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">logvol /opt --fstype ext3 
--vgname=rootvg --size=2048 --name=optlv</SPAN></FONT> <BR><FONT face=Courier 
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">logvol /home --fstype 
ext3 --vgname=rootvg --size=2048 --name=homelv</SPAN></FONT> <BR><FONT 
face=Courier size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">logvol 
/usr --fstype ext3 --vgname=rootvg --size=2048 --name=usrlv</SPAN></FONT> 
<BR><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">logvol /usr/local --fstype ext3 
--vgname=rootvg --size=2048 --name=locallv</SPAN></FONT> <o:p></o:p></P>
<P><FONT face=Courier size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Courier">%packages</SPAN></FONT> 
<o:p></o:p></P>
<P><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; 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 face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Any 
input would be appreciated.</SPAN></FONT> <o:p></o:p></P>
<P><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks.</SPAN></FONT> 
<o:p></o:p></P>
<P><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">--</SPAN></FONT> <BR><FONT 
face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">sh</SPAN></FONT> 
<o:p></o:p></P></DIV></BODY></HTML>