Re: [CentOS] kickstart server variable name

2008-03-03 Thread Tom Brown
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

Re: [CentOS] kickstart server variable name

2008-03-03 Thread Milton Calnek
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

Re: [CentOS] kickstart server variable name

2008-03-03 Thread Matt Hyclak
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

Re: [CentOS] kickstart server variable name

2008-03-03 Thread Tom Brown
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

Re: [CentOS] kickstart server variable name

2008-03-03 Thread nate
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