LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-12-2019, 08:33 PM   #1
mgnyinaing
LQ Newbie
 
Registered: Mar 2019
Posts: 1

Rep: Reputation: Disabled
Angry Dependency failed for /boot after update kernel 5.0


In this morning, I updated my CentOS 7 running with old kernel 3.0.xx to latest stable kernel verison 5.0 from elrepo-kernel. Then, I rebooted the VM but didn't boot up correctly and entered into emergency mode. I checked with journalctl -xb
. I found "Dependency failed for /boot" in journalctl result. How can I sort it out to normal operational state.
 
Old 03-13-2019, 06:30 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,566

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
Kernel 3.x --> 5.x is an awfully big jump. Kernel-3.x is vintage 2014. As a first move, I would check the docs for kernel 4.x & 5.x to find the minimum software versions required.

You don't say what hypervisor you're using (Xen, vmware, KVM, Virtualbox, etc) but with VB (the one I have experience with) you need to recompile the kernel modules for the new kernel, which means you need the kernel source. You'll also need the Module.symvers, and may have to compile the config just to get it.

Post again, giving a lot more information. What's your glibc version? Did you install the 5.x kernel headers? What's your gcc? what's your exact error? Check all logs for scraps of information.
 
Old 03-13-2019, 07:11 AM   #3
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 231

Rep: Reputation: Disabled
I suspect your boot image might need updated. Try using something like dracut to generate a new one. I don't do this often, so I don't remember off hand the command line options.
 
Old 03-13-2019, 10:55 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: Currently OpenMandriva. Previously openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,072

Rep: Reputation: 1575Reputation: 1575Reputation: 1575Reputation: 1575Reputation: 1575Reputation: 1575Reputation: 1575Reputation: 1575Reputation: 1575Reputation: 1575Reputation: 1575
Is /boot on a separate partition, or on the root file system? Because it sounds like it failed to mount /boot, which will be a big problem, as this is where the kernel is stored.

Also, did you post this thread on serverfault?
 
Old 03-13-2019, 11:06 AM   #5
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: Currently OpenMandriva. Previously openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,072

Rep: Reputation: 1575Reputation: 1575Reputation: 1575Reputation: 1575Reputation: 1575Reputation: 1575Reputation: 1575Reputation: 1575Reputation: 1575Reputation: 1575Reputation: 1575
Quote:
Originally Posted by business_kid View Post
Kernel 3.x --> 5.x is an awfully big jump. Kernel-3.x is vintage 2014. As a first move, I would check the docs for kernel 4.x & 5.x to find the minimum software versions required.

You don't say what hypervisor you're using (Xen, vmware, KVM, Virtualbox, etc) but with VB (the one I have experience with) you need to recompile the kernel modules for the new kernel, which means you need the kernel source. You'll also need the Module.symvers, and may have to compile the config just to get it.

Post again, giving a lot more information. What's your glibc version? Did you install the 5.x kernel headers? What's your gcc? what's your exact error? Check all logs for scraps of information.
elrepo provides kernel packages with the kernel already built, so they didn't build it to begin with. So this information isn't relevant. CentOS uses kernel 3.x by default, so if you wanted a higher version then unless you build it yourself, you would use elrepo's kernel packages on CentOS.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dependency checking this, dependency checking that. Jeebizz General 11 09-29-2009 06:51 PM
YUM update failed: Dependency Error wegadnie Linux - General 5 12-23-2008 10:56 PM
zen update - "dependency resolution failed" ungua SUSE / openSUSE 3 08-24-2006 09:38 AM
how to update a package? Failed Dependency.... grasssu Linux - Newbie 7 03-08-2005 04:07 AM
how to solve failed dependency when dependency exists dwcramer Linux - Newbie 2 08-24-2004 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration