That would give the local IP, not the IP of the kickstart server...
my bad - i thought thats what the OP wanted
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
I don't think that's the ip OP is looking for. I think he wants the server ip.
Tom Brown wrote:
You may be able to get the IP out of /proc/cmdline during %post
or
export MYIP=`ifconfig eth0 | awk '/inet/ {print $2}' | cut -d: -f 2`
___
CentO
On Mon, Mar 03, 2008 at 09:38:04PM +, Tom Brown enlightened us:
> >You may be able to get the IP out of /proc/cmdline during %post
> >
>
> or
>
> export MYIP=`ifconfig eth0 | awk '/inet/ {print $2}' | cut -d: -f 2`
>
That would give the local IP, not the IP of the kickstart server...
Mat
You may be able to get the IP out of /proc/cmdline during %post
or
export MYIP=`ifconfig eth0 | awk '/inet/ {print $2}' | cut -d: -f 2`
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
Jerry Geis wrote:
> Hi all,
>
> When your using kickstart and have a command like
> linux ks=http://MYIP/file.cfg
>
> Is there a variable in the post section that has the MYIP value?
> I want to nfs mount from the same server in the post section.
You may be able to get the IP out of /proc/cmdline
5 matches
Mail list logo