Excerpts from Dan Callaghan's message of 2014-10-31 11:41 +10:00:
Excerpts from Junichi Nomura's message of 2014-10-30 14:51 +10:00:
This is error-prone because if we have site-local "readahead_sysconfig" snippet, which is empty, generated shell script will be broken. (Actually, I've been using empty "readahead_sysconfig" snippet)
[...]
Probably the best solution is to just add a dummy statement after the "then" statement to make it syntactically valid even if the snippet is empty. I guess this should work:
if [ -f /etc/sysconfig/readahead ] ; then : {% snippet 'readahead_sysconfig' %} fi
... and the workaround, which you probably already figured out, is to just make your custom snippet have a dummy statement instead of being completely empty.