Create a hook for overriding installkernel