Koozali.org: home of the SME Server

Recover from failed update - kernal panic

Offline Paperguides

  • ****
  • 118
  • +0/-0
Recover from failed update - kernal panic
« on: February 18, 2014, 11:33:24 AM »
I have just applied the latest update to my server (8.0) and on reboot I get:

Unable to load SELinux Policy.  Machine is in enforcing mode. Haulting now.
Kernal Panic : not syncing. Attempting to halt init!

Research suggest the kernal update failed.  How can I recover to a working server?

Thanks,

tony
...

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Recover from failed update - kernal panic
« Reply #1 on: February 19, 2014, 01:15:23 AM »
Paperguides

Boot up in rescue mode.
Check installed rpm versions against what should be installed ie versions in the updates repo.
/sbin/e-smith/audittools/newpms

Report a bug as upgrades should work correctly
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Recover from failed update - kernal panic
« Reply #2 on: February 19, 2014, 06:57:23 PM »
I have just applied the latest update to my server (8.0) and on reboot I get:

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

The system should not be booting in SElinux enforcing mode. The kernel command line should say "selinux=0". If it doesn't, you can add that interactively, starting by typing 'a' at the right time during the boot sequence. Someone else here (or google) can probably find you documentation on how to do that.

Once you disable selinux, the boot should get further, and you can make a more permanent solution to the problem.

Alternatively, you could boot in rescue mode from the CDROM, then do "chroot /mnt/syslinux' when prompted, and then 'pico /etc/grub.conf' to edit the grub file. Then 'exit' and 'exit' to reboot.

But there is still a mystery as to why your system is in this state. Nobody else has ever encountered that.

Offline Paperguides

  • ****
  • 118
  • +0/-0
Re: Recover from failed update - kernal panic
« Reply #3 on: February 19, 2014, 09:21:33 PM »
That fixed if it so I now have a 'working' system.  I've logged bug (8217).

There was no line in the grub.conf file about selinux.

Having looked at newrpms and other logs, based on the dates I found I'm pretty certain it wasn't a kernal update that caused the problem.

Thanks for the advice.
...