開機出現unable to load selinux policy

來源:互聯網
上載者:User

不同情景的同樣問題:開機出現unable to load selinux policy

情景一:

在修改/etc/selinux/config SELINUX=disable後開機出現

unable to load selinux policy. machine is in enforcing mode. halting now.

kernel panic-not syncing:attempted to kill init! 

解決方案:

在Grub啟動菜單上按e進入編輯模式,在啟動項

“kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/vogroup00/logvol00 rhgb quiet”

後面加上 enforcing=0 ,斷行符號,然後按b啟動即可。

情景二:

在強制關閉裝有KVM虛擬機器的實體機時,開機起不來出現以下畫面:

然後進入grub命令列,執行:/etc/inittab,出現一些初始化失敗的資訊:

.........unable to load selinux policy..........

解決辦法:

      在Grub啟動菜單上按e進入編輯模式,進入啟動項

    “kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/vogroup00/logvol00 rhgb quiet”,添加selinux=0;

然後再reboot就好了。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.