This is derived from two recent support posts
Post upgrade we have had to diff several custom templates that we have and are trying to move as much into custom snippets so that we do not need to maintain as many templates. However, if there is a snippet you want to override (and not unlock the stock snippet) you would need to also override the template(s) using the snippet that apply in your environment. To simplify this I’d like to propose shifting the logic around snippets to be something along the lines of
if snippet_exists("custom_<snippet_name>") else snippet("<snippet_name>"). This would allow someone to easily override the snippet without needing to also override the template(s) it is used in.
The second thing I’d like to propose (wish I could remember which tool I’m borrowing this idea from…) is adding a couple more
template_name + custom lines to the kickstart templates (not using the others and would need to look at them a little to see if it is also applicable). Using kickstart, this would allow for a “early” and “late” block to exist in sections like
%post giving folks more flexibility in where they can insert commands without needing to override full kickstart template. In our use case, we need the early block to insert custom certificates (working around with the postnochroot snippet).
I’m happy to try and make some of these changes but wanted to put this up for discussion before starting any work there.