Hi
guys.
I'm trying to source
the ks.cfg programmatically from the ks' %post using Bash.
%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.
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".
I was hoping to have
my %post script derive the relative location of the files to grab from the
location of the ks.cfg.
For
example:
isolinux.cfg label
or at the "Install CD" boot prompt:
ks=nfs:10.4.146.47:/var/software/init/ks.cfg
Then from the ks.cfg
%post:
%post
echo `dirname $0`
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)
Hardcoding the same
base path 3 times isn't my preference and I can't pass vars in a
ks.
Any
ideas?
Thanks!!!
-
Chris