Boot failed after yum update

Issues related to applications and software problems
Post Reply
GabboR
Posts: 7
Joined: 2019/11/29 16:29:55

Boot failed after yum update

Post by GabboR » 2019/11/29 16:43:31

Hi. I restarted my Centos 7.7 machine after a partial yum update (there was a blackout during it) and now the machine can't boot anymore.

It reports some errors:
1. Failed to start Virtual Machine and Container Registration Service
2. Failed to start Login Service
3. Failed to start Disk Manager
4. Failed to start Authorization Manager
5. Failed to start RealtimeKit Scheduling Policy Service
6. Failed to start Account Service
7. Failed to start Modem Manager

Kernel version: 3.10.0-1062.4.3.e17.x86_64

Can you please help me?
Thanks.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Boot failed after yum update

Post by TrevorH » 2019/11/29 18:02:49

Back up your important data.

You can try following the instructions on https://wiki.centos.org/HowTos/Cleaning ... tePackages to clean up and recover but a) don't forget the backups and b) it might not work and c) don't forget the backups!
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

GabboR
Posts: 7
Joined: 2019/11/29 16:29:55

Re: Boot failed after yum update

Post by GabboR » 2019/11/29 19:16:09

Thanks for you support!

Centos didn't find any duplicated packages and I made a complete yum update but I can't still boot :(

GabboR
Posts: 7
Joined: 2019/11/29 16:29:55

Re: Boot failed after yum update

Post by GabboR » 2019/11/29 19:32:36

Now Centos reports:
SELinux targeted policy relabel is required

and then it restarts automatically.

GabboR
Posts: 7
Joined: 2019/11/29 16:29:55

Re: Boot failed after yum update

Post by GabboR » 2019/11/29 19:38:27

If I add selinux=0 to the kernel boot line it boots properly.

How I can fix this issue?
Thanks.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Boot failed after yum update

Post by TrevorH » 2019/11/29 20:54:53

Boot in permissive mode, edit the config file and change that to permissive, touch /.autorelabel and then reboot again. That will relabel all files on your system and will take a while. Once it's complete you should be able to switch the config file back to enforcing and reboot again.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

GabboR
Posts: 7
Joined: 2019/11/29 16:29:55

Re: Boot failed after yum update

Post by GabboR » 2019/11/29 21:49:32

My Selinux config is already in permissive mode but I can't boot without selinux=0 flag.

It's very strange.

GabboR
Posts: 7
Joined: 2019/11/29 16:29:55

Re: Boot failed after yum update

Post by GabboR » 2019/11/29 22:13:04

sudo yum reinstall selinux-policy-targeted

Finally fixed the problem.

Thanks a lot for your support ;)

Post Reply