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

Submitter:  Marc Ferland <bookmarc>
Submitted:  Mon 08 Feb 2010 07:02:30 PM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Invalid Privacy:  Public
Assigned to:  None Originator Name:  Marc
Open/Closed:  Closed Release:  1.97
Release:  Reproducibility:  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>
Group 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>

 

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

No files currently attached

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2010-02-24 phcoder StatusNone Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code