Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401933 - sys-fs/lvm2-2.02.73-r1 should depend on sys-apps/makedev, and lvm2create_initrd has incorrect path to MAKEDEV
Summary: sys-fs/lvm2-2.02.73-r1 should depend on sys-apps/makedev, and lvm2create_init...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2012-02-02 17:00 UTC by Scott Alfter
Modified: 2023-05-10 21:23 UTC (History)
4 users (show)

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


Attachments
updated ebuild (lvm2-2.02.73-r2.ebuild,8.51 KB, text/plain)
2012-02-02 17:14 UTC, Scott Alfter
Details
lvm2create_initrd patch...fixes path to MAKEDEV (lvm2-2.02.73-lvm2create_initrd.patch,556 bytes, patch)
2012-02-02 17:15 UTC, Scott Alfter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Alfter 2012-02-02 17:00:38 UTC
lvm2create_initrd, which is installed by sys-fs/lvm2, needs MAKEDEV to run, but this isn't pulled in.  Also, MAKEDEV has moved from /usr/sbin to /sbin.

Reproducible: Always
Comment 1 Scott Alfter 2012-02-02 17:14:30 UTC
Created attachment 300769 [details]
updated ebuild
Comment 2 Scott Alfter 2012-02-02 17:15:09 UTC
Created attachment 300771 [details, diff]
lvm2create_initrd patch...fixes path to MAKEDEV
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-03-27 02:36:35 UTC
makedev is only needed for the initrd tool, which came from upstream contrib.
agk: with the /usr mount need, the initrd doesn't do it, maybe drop it from LVM2 entirely?
Comment 4 Walter 2012-08-29 20:57:03 UTC
I also encountered this problem.
It should definitely be resolved.
The proposals by Scott seem logical to me.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2013-08-04 20:59:14 UTC
The directory was already /sbin/MAKEDEV instead of /usr/sbin/ in LVM2 2.02.99 so what was left is creating USE="lvm2create_initrd" and putting sys-apps/makedev behind it and only install the script then
and that's done in version 2.02.99-r1 in portage now
Comment 6 Larry the Git Cow gentoo-dev 2023-05-10 21:23:43 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb52cff5d43a8aa6c92d87d56dc2a1d499941eb8

commit cb52cff5d43a8aa6c92d87d56dc2a1d499941eb8
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-05-10 21:23:33 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-05-10 21:23:33 +0000

    sys-fs/lvm2: remove USE=lvm2create-initrd
    
    * If people want this script, they should work on getting the patch we
      carry upstreamed and making the script POSIX.
    * Should there be a real demand, this script should be packaged
      separately.
    * We strongly recommend users switch to dracut, which is the garden path
      and much more supported in practice.
    
    Bug: https://bugs.gentoo.org/401933
    Signed-off-by: David Seifert <soap@gentoo.org>

 sys-fs/lvm2/lvm2-2.03.21.ebuild | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)