bugGNU GRUB - Bugs: bug #28843, Running grub-mkconfig under...

 
 

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

bug #28843: Running grub-mkconfig under busybox outputs undesired configuration

Submitted by:  Marc Ferland <bookmarc>
Submitted on:  Mon 08 Feb 2010 07:02:30 PM UTC  
 
Category: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: Marc
Open/Closed: ClosedRelease: 
Release: 1.97Reproducibility: Every Time
Planned Release: None

Wed 24 Feb 2010 05:36:22 PM UTC, comment #1:

This is on purpose. If by-uuid node doesn't exist grub supposes that linux/initrd/udev either has no UUID support at all or not for this filesystem or UUIDs mismatch for an obscure reason

Vladimir Serbinenko <phcoder>
Project Administrator
Mon 08 Feb 2010 07:02:30 PM UTC, original submission:

Hi,

I am currently using grub version 1.97.1.

I work on a small linux distro based on busybox and I recently observed a strange behavior from grub-mkconfig. It seems that running grub-mkconfig on a platform that doesn't have the /dev/disk/by-uuid/UUID nodes yields a grub config that uses the kernel device name /dev/sdXN instead of the device UUID even if this UUID is available through grub-probe.

This can be observed with the root=/dev/sdXY argument of the kernel boot parameters.

This means that grub-mkconfig is dependant on whatever event system is present on the system. For example, busybox uses mdev to create device nodes under /dev, ubuntu-like distros use udev. mdev doesn't create the uuid symlinks in /dev unlike udev.

IMHO, it would be desirable to use the UUID provided by grub-probe even if the device node UUID does not exists. This would ensure that grub works on a wider range of linux platforms.

I was able to fix this on my platform by removing the:
test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}"
line in /etc/grub.d/10_linux.

Regards,

Marc

Marc Ferland <bookmarc>

 

No files currently attached

 

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 bookmarc (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 24 Feb 2010 05:36:22 PM UTCphcoderStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1