If compiling a Vanilla kernel for CentOS, you may encounter the following after rebooting:
Setuproot: moving /dev failed: No such file or directory Setuproot: error mounting /proc: No such file or directory Setuproot: error mounting /sys: No such file or directory [...] Kernel panic - not syncing: Attempted to kill init!
To resolve the booting issues, be sure to modify .config to include the following and recompile the kernel:
It can also be found in menuconfig:
General Setup --> Enable Deprecated Sysfs Features