Add support for extracting/repacking kernel