I had a quick browse through this bug, and I came up with this as a solution for including both prepending and appending hooks:
In the config you'd have two config options:
default_processing_hooks = ramdisk_error,scheduler,validate_interfaces
processing_hooks = $defaults
In the code '$defaults' would get resolved to the values stored in default_processing_hooks. If a operator wanted to add their own hooks before or after the defaults they could like:
processing_hooks = prehook,$defaults,posthook,secondposthook
What do you think? This was just my initial thoughts after reading the bug report and the comments on the linked patch.
I had a quick browse through this bug, and I came up with this as a solution for including both prepending and appending hooks:
In the config you'd have two config options:
default_ processing_ hooks = ramdisk_ error,scheduler ,validate_ interfaces
processing_ hooks = $defaults
In the code '$defaults' would get resolved to the values stored in default_ processing_ hooks. If a operator wanted to add their own hooks before or after the defaults they could like:
processing_hooks = prehook, $defaults, posthook, secondposthook
What do you think? This was just my initial thoughts after reading the bug report and the comments on the linked patch.