Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290603 - Genkernel's linuxrc's use of blkid not correct for multipath
Summary: Genkernel's linuxrc's use of blkid not correct for multipath
Status: RESOLVED DUPLICATE of bug 303531
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-26 18:36 UTC by Paul Sumner
Modified: 2011-01-11 15:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Sumner 2009-10-26 18:36:22 UTC
blkid as contained in the default linuxrc for genkernel will return more than 1 devices when attempting to boot using a UUID with a multipath device. 

Reproducible: Always

Steps to Reproduce:
1. Build a new kernel, etc. using genkernel --disklabel --multipath on a system with a multipath boot device.
2. Attempt to boot using a UUID in grub.conf
3. 

Actual results:

This causes a device not found error on boot (more than 1 device is echo'd to the console).

Expected results:

System boots using a UUID.

The fix is to add the -l flag ("lookup the the first device with arguments specified by -t"). The only downside would be if the 1st device is down, but the latter device(s) were not.

stimpy ~ # diff /usr/share/genkernel/defaults/linuxrc /usr/share/genkernel/defaults/linuxrc~
291c291
<                                       RESUME_DEV=`blkid -l -t "${REAL_RESUME}" | cut -d ":" -f 1 2>/dev/null`
---
>                                       RESUME_DEV=`blkid -t "${REAL_RESUME}" | cut -d ":" -f 1 2>/dev/null`
400c400
<                                       ROOT_DEV=`blkid -l -t "${REAL_ROOT}" | cut -d ":" -f 1 2>/dev/null`
---
>                                       ROOT_DEV=`blkid -t "${REAL_ROOT}" | cut -d ":" -f 1 2>/dev/null`
Comment 1 Sebastian Pipping gentoo-dev 2011-01-11 15:49:36 UTC
This sounds like the issue just fixed with bug #303531.  I will close this bug as a duplicate despite the fact that you reported it earlier, as I have process the other one already.  If it turns out that these bugs are not the same, please re-open this bug.  Thanks for reporting!

http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=e590a493ead9a21e356215b5394172717b0f615d

*** This bug has been marked as a duplicate of bug 303531 ***