Unable to load SELinux Policy. Machine is in enforcing mode. Halting now.


After upgrading Centos 5.3 to 5.5, the system would not boot back up. Got this message:

“Unable to load SELinux Policy. Machine is in enforcing mode. Halting now.

Kernel panic – not syncing: Attempted to kill init!”

Fix is to add the “enforcing=0″ to the grub boot line before system boots. Then when it boots, modify the /etc/grub.conf file to include this “enforcing=0″ option:

default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-194.8.1.el5.centos.plus)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.8.1.el5.centos.plus ro root=/dev/VolGroup00/LogVol00 enforcing=0
initrd /initrd-2.6.18-194.8.1.el5.centos.plus.img
title CentOS (2.6.18-128.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.18-128.el5.img

-H

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: