Add ramdisk auto-patching support