Enforcing mode requested but no policy loaded. Halting now. kernel panic – not syncing: Attem

來源:互聯網
上載者:User

在vmware下面,新編譯的核心,啟動出現問題:
Enforcing mode requested but no policy loaded. Halting now.
kernel panic - not syncing:  Attempted to kill init!

解決方案:
1、在grub.conf裡把 kernel /vmlinuz-2.6.19 ro root=LABEL=/ rhgb quiet 變為:
kernel /vmlinuz-2.6.19 ro root=LABEL=/ enforcing=0 rhgb quiet

2、修改/etc/selinux/config設定檔,只要把SELINUX的值改成disabled就好了

原因:
selinux的問題。
enforcing參數是在啟動核心時傳遞給selinux的核心參數,它用來決定你系統的核心運行於 強制(enforcing )模式還是自由(permissive) 模式。
在自由模式下SELinux只是記錄他該做什麼,而事實上並不做任何動作。在強制模式下SElinux會來真格的。如果你的策略有錯誤,在強制模式下系統
可能會阻止你登陸!所以正常情況下你應改在啟動時傳 enforcing=1
給核心,當你的SELinux策略有問題時,你可以臨時傳enforcing=0給核心來查錯。在/etc/selinux/config這個init的
設定檔中相應的有一個選項,通過設定它,也可以使系統進入自由模式。

參考:

http://www.kernelchina.org/?q=node/103

http://ciwnet.blog.sohu.com/64878437.html

http://linux.chinaunix.net/bbs/thread-903538-1-1.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.