On Sun, Sep 18, 2011 at 4:40 PM, Idan Shinberg <idan@superfish.com> wrote:
my kickstart  is centos.ks.inside , it has the following snippet :

$SNIPPET('add_mounts')

/var/lib/cobbler/snippets/add_mounts contains:

#if profile == 1
echo "nfs.servers:/mount_1 mount_1 nfs defaults 0 0" >> /etc/fstab
#end if

Using it  results and issuing cobbler profile getks ... results in just  "$SNIPPET('add_mounts')" being written to stdout , instead of the snippet content
however , if I remove the #if macro  , I get :


is the 'profile' variable defined in the kickstart? if so, try to make it a global variable then:

#set global profile = 1

HTH
--
Grtz,
Jörgen Maas