On Tue, May 8, 2012 at 5:21 PM, John Paget Bourke
<john.bou...@mobileinternet.com> wrote:
> Greg
>
> Updated the kickstart, same error
>
> accepteula
> install --firstdisk --overwritevmfs
>
> # RootPassword is taken from the default setting of cobbler
> rootpw --iscrypted $$default_password_crypted
>
> reboot
> %include /tmp/networkconfig
> %pre --interpreter=busybox
>
> # extract network info from bootup
> VMK_INT="vmk0"
> VMK_LINE=$$(localcli network ip interface ipv4 get | grep "$${VMK_INT}")
> IPADDR=$$(echo "$${VMK_LINE}" | awk '{print $$2}')
> NETMASK=$$(echo "$${VMK_LINE}" | awk '{print $$3}')
> GATEWAY=$$(esxcfg-route | awk '{print $$5}')

Double $'s isn't the right way to escape things in cheetah. Either use
\$ or wrap shell code in #raw/#end raw statements. That should fix
your issues. Just remember that template variables won't be
interpreted inside the #raw block. It gets really tricky when your
shell needs to escape the $ too... you end up with stuff like \\\$ -
much easier to use #raw at that point.
_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to