Fix a kernel update issue if the kernel is on /dev/mtd* partition