I had some problem with the default rootfs and always writing out kernel panic. I want to fixed it in the kernel, so I tried many ways to solve this problem. I had base idea to fix , that is before writing out the kernel-panic I try to stop the kernel and I have to choose another rootfs and retry to load chosen rootfs.I have 2 rootfs first is root=/dev/sda1the second is root2=/dev/sdb1.
How to specify an alternative root file system at boot time
boot;root filesystem