Recently after rebooting one of our system running Oracle Enterprise Linux 6-64 Bit does not come up with listed below error:
“/etc/selinux/config” file is incorrectly configured. Hence system is not able to boot.
To recover the system use Installation media and login to system in rescue mode and update the incorrectly configured file to correctly and reboot the system.
– After booting from Installation media choose option “Rescue installed system”
The rescue environment will mount our Linux root mount point to other directory “/mnt/sysimage”
– Now the system is mounted on directory “/mnt/sysimage”
– SELINUXTYPE should have value either targeted or mls. But in correct value has been specified.
– Just exit the shell and reboot the server. After reboot server should come up normally.
In this case the problem is with only one file. The purpose of this post is to demonstrate how we can modify the system files in rescue mode if in case critical system files has been configured incorrectly and thus system is not able to come up.
Thanks for reading
X A H E E R
This is wrong solution. Can you please elaborate the issue? why you are providing the solution with SELinux Disable? what is technical between SELinux and kernel panic issue?