bugGNU GRUB - Bugs: bug #39154, Generated grub.cfg contains...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #39154: Generated grub.cfg contains kernels that lack modules directory

Submitter:  Alexei Ababilov <aababilov>
Submitted:  Mon 03 Jun 2013 04:58:49 PM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Feature Request
Status:  Wont Fix Privacy:  Public
Assigned to:  None Originator Name:  aababilov
Open/Closed:  Closed Release:  Bazaar - trunk
Release:  Reproducibility:  Every Time
Planned Release:  None

Fri 07 Jun 2013 02:04:40 PM UTC, comment #1: 

No module directory is a normal occurence and is used on some systems where all useful modules are compiled in.
Sharing the /boot isn't guaranteed to work, see manual for better solution.

Vladimir Serbinenko <phcoder>
Group administrator
Mon 03 Jun 2013 04:58:49 PM UTC, original submission:  

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.

Alexei Ababilov <aababilov>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #28243:  ensure-kernel-modules.patch added by aababilov (1KiB - text/x-patch - A proposed patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by aababilov (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-06-07 phcoder StatusNone Wont Fix
        Open/ClosedOpen Closed
    2013-06-03 aababilov Attached File- Added ensure-kernel-modules.patch, #28243

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code