URL: <http://savannah.gnu.org/bugs/?39154>
Summary: Generated grub.cfg contains kernels that lack modules directory Project: GNU GRUB Submitted by: aababilov Submitted on: Mon 03 Jun 2013 04:58:49 PM GMT Category: Configuration Severity: Major Priority: 5 - Normal Item Group: Feature Request Status: None Privacy: Public Assigned to: None Originator Name: aababilov Originator Email: ilovegnuli...@gmail.com Open/Closed: Open Discussion Lock: Any Release: Release: Bazaar - trunk Reproducibility: Every Time Planned Release: None _______________________________________________________ Details: Consider a computer with several GNU/Linux distros. It has one boot partition that contains all kernels and initrds and one partition for each distro. grub2-mkconfig generates a config that allows _every_ available kernel to boot with the main distro. This is usually undesired since different kernels belong to different distros. A simple check whether this kernel belongs to a distro can be verifying its /lib/modules/$version directory. Example. We run Debian (vmlinuz-3.2.0-4-amd64) and Gentoo (vmlinuz-3.8.13-gentoo-05.23). If Gentoo is the main distro, grub2-mkconfig will allow it to boot with vmlinuz-3.2.0-4-amd64. This boot will fail since vmlinuz-3.2.0-4-amd64 requires a lot of kernel modules. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Mon 03 Jun 2013 04:58:49 PM GMT Name: ensure-kernel-modules.patch Size: 1kB By: aababilov A proposed patch <http://savannah.gnu.org/bugs/download.php?file_id=28243> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?39154> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-grub mailing list Bug-grub@gnu.org https://lists.gnu.org/mailman/listinfo/bug-grub