[Bug 1613260] Re: update-grub (grub-mkconfig) includes all kernels in boot, regardless whether version is in /lib/modules
Or if like you said in comment #1, if you build a kernel without modules which will run just fine without anything in /lib/modules. And in #3 you said, you can run any kernel (of the right architecture) from anywhere, and it seems you are right. But you can't customize or update the initrd for it of course. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1613260 Title: update-grub (grub-mkconfig) includes all kernels in boot, regardless whether version is in /lib/modules To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1613260/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1613260] Re: update-grub (grub-mkconfig) includes all kernels in boot, regardless whether version is in /lib/modules
You said that update-initramfs would fail on a custom kernel because you don't have /lib/modules populated. That would only happen if you forgot to make modules_install. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1613260 Title: update-grub (grub-mkconfig) includes all kernels in boot, regardless whether version is in /lib/modules To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1613260/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1613260] Re: update-grub (grub-mkconfig) includes all kernels in boot, regardless whether version is in /lib/modules
I'm not building any kernels here. I am sharing the boot partition with various sorts of LUKS encrypted root partitions. I understand now why it is totally fine to run your system with all kinds of kernels & initrds. It just works. I also have a patch for 30_os-prober that fixes things. (It has more problems, sometimes it has the wrong root-partition, and os-prober has various ways of collecting information about the systems to include for booting with grub (including parsing grub.cfg itself, which doesn't work so well when all these different root systems actually share the same grub.cfg). The way that works well for me is also enumerating the kernels based on the presence of the matching version in /lib/modules. But again, you could boot any root partition from any kernel, as I learned. In am not sure anymore why I wouldn't want to..?! It is sometimes handy to have the modules there, especially if you use dkms build systems or do other building. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1613260 Title: update-grub (grub-mkconfig) includes all kernels in boot, regardless whether version is in /lib/modules To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1613260/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1613260] Re: update-grub (grub-mkconfig) includes all kernels in boot, regardless whether version is in /lib/modules
It sounds like you forgot to make modules_install. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1613260 Title: update-grub (grub-mkconfig) includes all kernels in boot, regardless whether version is in /lib/modules To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1613260/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1613260] Re: update-grub (grub-mkconfig) includes all kernels in boot, regardless whether version is in /lib/modules
I understand you can build your own kernel and include all the necessary drivers and modules into the image. If you don't include everything in the kernel image, making an initramfs with update-initramfs is not going to work, it first issues a warning about the missing /lib/modules for that home-built version of the kernel, and then depmod gives an error that it can't open that directory, which is fatal. So there is no way to use update-initramfs using that kernel. Now update-grub doesn't care, it will use the initrd it can find with the matching version if present. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1613260 Title: update-grub (grub-mkconfig) includes all kernels in boot, regardless whether version is in /lib/modules To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1613260/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1613260] Re: update-grub (grub-mkconfig) includes all kernels in boot, regardless whether version is in /lib/modules
Any kernel will likely work, including one you compile yourself. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1613260 Title: update-grub (grub-mkconfig) includes all kernels in boot, regardless whether version is in /lib/modules To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1613260/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1613260] Re: update-grub (grub-mkconfig) includes all kernels in boot, regardless whether version is in /lib/modules
OK, I see your point. Maybe I've been looking at the wrong marker (although all installs of Ubuntu that I know of would have modules). But there must be some other marker that a particular kernel was never installed in this system?? Or are you saying that any random kernel from some other system/distribution will run fine with any other system?? If that is the case, this fix is totally unnecessary, but is that true? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1613260 Title: update-grub (grub-mkconfig) includes all kernels in boot, regardless whether version is in /lib/modules To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1613260/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1613260] Re: update-grub (grub-mkconfig) includes all kernels in boot, regardless whether version is in /lib/modules
It is entirely possible to build a kernel without modules and it will run just fine without anything in /lib/modules, so this change is not appropriate. ** Changed in: grub2 (Ubuntu) Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1613260 Title: update-grub (grub-mkconfig) includes all kernels in boot, regardless whether version is in /lib/modules To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1613260/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs