今天開機進centos7後出現警告
dracut-initqueue[259]: Warning: dracut-initqueue timeout
Warning: /dev/centos/root does not exist
Warning: /dev/centos/swap does not exist
Warning: /dev/mapper/centos-root does not exist
然後進入緊急模式,如下圖(實體機現場已經無法重現,借個圖)
經過一番查找,大部分說的是usb安裝的解決問題,根本不對題。
最後在https://forums.centos.org/viewtopic.php?t=63988找到解決方法:
在centos7啓動菜單 中選擇 帶rescue文字的啓動項進入 rescue kernel 。
登陸後執行
dracut -f
給最新內核進行重建initramfs文件
注意需耐心等待一兩分鐘,等待重建完成,這就修復好了。重啓可正常登陸。
出現問題原因不明,可能性: 系統升級了。不過現在又可以愉快的docker了