Automatically set kernel for patched primary upgrade ROM