Dependency failed for /boot after update kernel 5.0
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
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.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by business_kid
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.