技术解析
当启动系统时提示:Switching root
错误原因:
When the boot process switches root from the initramfs loaded in memory to the mounted storage, it executes the upstart initscripts in /etc/init/
, which in turn continue the boot process to the login screen. So if any of those scripts are corrupted by file corruption, or from a bad update, then there is a chance the boot process will halt at dracut: Switching root
.
用我理解的话就是,当系统启动的时候会检查initscripts里的/etc/init的完整性,如果存在问题及会卡住。
解决办法:
开启救援模式,挂载分区后使用chroot,使用yum安装initscripts。