Linux Kernel compilation distress notes

Source: Internet
Author: User
Linux Kernel compilation distress note-general Linux technology-Linux programming and kernel information. The following is a detailed description. Compilation steps:
Make mrproper
Make oldconfig
Make
Make modules_install
Make install

But cannot start. Error:
Kernel panic-not syncing: Attempted to kill init!

Go to the Internet to find a solution. The final solution is as follows:
In grub. conf, change kernel/vmlinuz-2.6.19 ro root = LABEL =/rhgb quiet to: kernel/vmlinuz-2.6.19 ro root = LABEL =/enforcing = 0 rhgb quiet. Restart in this way. select a new kernel to enter the system. In contrast to my own system, add enforcing = 0 in the corresponding place.

Other materials:
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, under normal circumstances, you should pass enforcing = 1 to the kernel at startup. When there is a problem with your SELinux policy, 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.

There is no suitable SELinux policy in your error prompt, so an error occurs. After the value is changed to 0, the system is in the free mode and will not go wrong.

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.