Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 468760 - sys-kernel/genkernel with >sys-fs/multipath-0.4.8 - genkernel --multipath fails due to missing /sbin/mpath_prio* tools
Summary: sys-kernel/genkernel with >sys-fs/multipath-0.4.8 - genkernel --multipath fai...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-06 14:30 UTC by weissgerbers
Modified: 2014-08-12 15:06 UTC (History)
1 user (show)

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


Attachments
emerge --info and genkernel.log (emergeInfo_genkernelLog,246.74 KB, text/plain)
2013-05-06 14:30 UTC, weissgerbers
Details
fix file copying to work with multipath-tools pre and post 0.49 (gkpatch,594 bytes, patch)
2014-06-20 18:09 UTC, Ian Stakenvicius (RETIRED)
Details | Diff
fix file copying to work with multipath-tools pre and post 0.49 (bug468760.patch,594 bytes, patch)
2014-06-20 18:19 UTC, Ian Stakenvicius (RETIRED)
Details | Diff
removing the usually-missing files from the cp (patch,465 bytes, patch)
2014-07-16 18:36 UTC, Ian Stakenvicius (RETIRED)
Details | Diff
removing mpath_prio_* and devmap_name from cp command (patch,457 bytes, patch)
2014-07-29 21:47 UTC, Ian Stakenvicius (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description weissgerbers 2013-05-06 14:30:19 UTC
Created attachment 347518 [details]
emerge --info and genkernel.log

genkernel with multipath support enabled (--multipath) fails due to missing  /sbin/mpath_prio* files which are deprecated since multipath-tools 0.4.9 (see http://christophe.varoqui.free.fr/)

masking multipath-tools > Version 0.4.8 seems not to be an option, because this Version of the port is no longer available

at the moment i can't boot a new kernel due to booting from multipath devices
Comment 1 weissgerbers 2013-05-10 13:09:33 UTC
The problem is solved with patching /usr/share/genkernel/gen_initramfs.sh:

231c231
< 		/sbin/{multipath,kpartx,dmsetup} \
---
> 		/sbin/{multipath,kpartx,mpath_prio_*,devmap_name,dmsetup} \

whereas mpath_prio_* is obsolete since multipath-tools 0.4.9 devmap_name is obsolete since 2005 (s. http://www.redhat.com/archives/dm-devel/2005-March/msg00079.html)
Comment 2 Alexandr Tiurin 2014-04-20 08:05:24 UTC
ping?
sys-kernel/genkernel-3.4.49. Same problem still here.
Comment 3 Ian Stakenvicius (RETIRED) gentoo-dev 2014-06-20 18:09:04 UTC
Created attachment 379330 [details, diff]
fix file copying to work with multipath-tools pre and post 0.49

Here's a patch that will fix the issue; just in case anyone is still using 0.48 or earlier with genkernel, those old tools are copied iff they exist, otherwise they are skipped.

Now if only the genkernel ebuilds supported epatch_user ...
Comment 4 Ian Stakenvicius (RETIRED) gentoo-dev 2014-06-20 18:19:01 UTC
Created attachment 379332 [details, diff]
fix file copying to work with multipath-tools pre and post 0.49

updated patch, other one had a typo and didn't apply cleanly.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-07-15 07:36:55 UTC
InCVS.
Comment 6 Ian Stakenvicius (RETIRED) gentoo-dev 2014-07-16 18:36:33 UTC
Created attachment 380838 [details, diff]
removing the usually-missing files from the cp

...not quite.  I'm not sure how this was missed from the other patch, but, the mpath_prio* stuff that is multipath-tools doesn't provide after 0.49 is still in the cp command and so will still cause the failure.

this patch fixes the cp command.
Comment 7 Ian Stakenvicius (RETIRED) gentoo-dev 2014-07-29 21:47:03 UTC
Created attachment 381846 [details, diff]
removing mpath_prio_* and devmap_name from cp command

I am full of fail on these patches....
Comment 8 Richard Yao (RETIRED) gentoo-dev 2014-08-12 15:06:51 UTC
Fixed in 3.4.51.1.