Linux Study Notes: An error occurred while compiling the kernel

Source: Internet
Author: User
Linux Study Notes: An error occurred while compiling the kernel-Linux general technology-Linux programming and kernel information. For details, refer to the following section. From 2.6.9.13 to 2.6.16, the compilation was successful, but an error occurred while restarting the computer.

Enforcing mode requested but no policy loaded. Halting now.
Kernel panic-not syncing: Attenpted to kill init!

Solution:
1. Change kernel/vmlinuz-2.6.19 ro root = LABEL =/rhgb quiet in grub. conf to: kernel/vmlinuz-2.6.19 ro root = LABEL =/enforcing = 0 rhgb quiet

Or

2. Modify the/etc/selinux/config configuration file and change the value of SELINUX to disabled.

The reason is selinux's problem:
The enforcing parameter is the kernel parameter passed to selinux when the kernel is started. It is used to determine whether the kernel of your system runs in the enforcing mode or the permissive mode.

In free mode, SELinux only records what he should do, but in fact does not do anything. In the forced mode, SElinux will come to the real grid. If your policy is incorrect, the system may block you from logging on in forced mode! Therefore, in normal cases, enforcing = 1 should be passed to the kernel at startup. When your SELinux policy is faulty, You can temporarily pass enforcing = 0 to the kernel for troubleshooting. There is an option in the init configuration file/etc/selinux/config. By setting it, the system can also enter the free mode.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.