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.
THanks,
Jerry
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 during %post
nate
On Mon, Mar 03, 2008 at 09:38:04PM +0000, 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...
Matt
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`
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos