On Mon, Dec 29, 2008 at 11:29 AM, D. Christopher Dale
<[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> It appears that a problem was introduced in the 1.4 release on my fedora
> 10 laptop.  The following section of the %post section of my kickstarts
> used to poduce a desired host name of dbg01.dbg.gesi (or whatever node I
> was building).
>
> # set hostname and populate hosts file
> cat >> /etc/sysconfig/networking << EOF
> NETWORKING=yes
> HOSTNAME=$grid$node.dbg.gesi
> EOF
>
> %hostname produces: dbg.dbg.gesi.
>
> If I escape the . after the variable as follows:
>
> # set hostname and populate hosts file
> cat >> /etc/sysconfig/networking << EOF
> NETWORKING=yes
> HOSTNAME=$grid$node\.dbg.gesi
> EOF
>
> %hostname is dbg01.dbg.gesi.  The /etc/sysconfig/network file keeps the
> \, as expected.

Try something like this:

# set hostname and populate hosts file
#raw
cat >> /etc/sysconfig/networking << EOF
NETWORKING=yes
HOSTNAME=$grid$node.dbg.gesi
EOF
#end raw

See this for more info:
https://fedorahosted.org/cobbler/wiki/KickstartTemplating#RawescapingandSnippets

-- 
Jeff Schroeder

Don't drink and derive, alcohol and analysis don't mix.
http://www.digitalprognosis.com
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to