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

Submitted by:  Alessio Ababilov <aababilov>
Submitted on:  Mon 03 Jun 2013 04:58:49 PM UTC  
 
Category: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: Feature Request
Status: Wont FixPrivacy: Public
Assigned to: NoneOriginator Name: aababilov
Open/Closed: ClosedRelease: 
Release: Bazaar - trunkReproducibility: 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>
Project 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.

Alessio Ababilov <aababilov>

 

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
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by aababilov (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 07 Jun 2013 02:04:40 PM UTCphcoderStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed
    Mon 03 Jun 2013 04:58:49 PM UTCaababilovAttached File-=>Added ensure-kernel-modules.patch, #28243

    Back to the top


    Powered by Savane 3.1-cleanup1