<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=787561523-07122004>Hi 
guys.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=787561523-07122004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=787561523-07122004>I'm trying to source 
the ks.cfg programmatically from the ks' %post using Bash.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=787561523-07122004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=787561523-07122004>%post scripts 
copying files need to have source file locations hardcoded. I wanted to have a 
ks that at %post would get the original ks= source path from my isolinux.cfg 
label.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=787561523-07122004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=787561523-07122004></SPAN></FONT><FONT 
face=Arial size=2><SPAN class=787561523-07122004>The files I want to copy are 
relative to the ks.cfg file, and I'm NFS running the ks.cfg from isolinux.cfg on 
an "Install CD".</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=787561523-07122004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=787561523-07122004>I was hoping to have 
my %post script derive the relative location of the files to grab from the 
location of the ks.cfg.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=787561523-07122004>For 
example:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=787561523-07122004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=787561523-07122004>isolinux.cfg label 
or at the "Install CD" boot prompt:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=787561523-07122004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=787561523-07122004>    
ks=nfs:10.4.146.47:/var/software/init/ks.cfg</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=787561523-07122004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=787561523-07122004>Then from the ks.cfg 
%post:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=787561523-07122004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=787561523-07122004>    
%post</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=787561523-07122004>    
echo `dirname $0`</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=787561523-07122004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=787561523-07122004>I was hoping 
`dirname $0` would give me the source path of the ks.cfg, but it pointed to 
/tmp. (which is where I'll assume the installer copied and read ks.cfg 
from)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=787561523-07122004><FONT face=Arial size=2>Hardcoding the same 
base path 3 times isn't my preference and I can't pass vars in a 
ks.</FONT></SPAN></DIV>
<DIV><SPAN class=787561523-07122004><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=787561523-07122004><FONT face=Arial size=2>Any 
ideas?</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=787561523-07122004>Thanks!!!</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=787561523-07122004>- 
Chris</SPAN></FONT></DIV></BODY></HTML>