[PATCH v2 0/4] Rework kernel image and initrd detection code and install hook