Boot failed after yum update

Issues related to applications and software problems
Post Reply
GabboR
Posts: 6
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
Forum Moderator
Posts: 27138
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!
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

GabboR
Posts: 6
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: 6
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: 6
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
Forum Moderator
Posts: 27138
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.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

GabboR
Posts: 6
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: 6
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

Return to “CentOS 7 - Software Support”