In Cobbler V2.0.10, within a given kickstart file or snippet, a
raw block does not seem to actually terminate with endraw.
Example kickstart:
# Kickstart to show raw/endraw bug
#set global $test1 = "abc"
somesetting1 $test1
#raw
somerawsetting1 $test1
#endraw
#set global $test2 = "def"
somesetting2 $test2
Results of doing "cobbler profile getks" for the profile specifying
that kickstart:
# Kickstart to show raw/endraw bug
somesetting1 abc
somerawsetting1 $test1
#endraw
#set global $test2 = "def"
somesetting2 $test2
That last line should be showing the value of the test2 variable,
not the literal line.
The workaround is to split into multiple files - EOF always seems
to terminate the raw block. But this seems like a bug that
should be fixed.