Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401709 - sys-fs/zfs-9999 uses wrong install dir for dracut modules
Summary: sys-fs/zfs-9999 uses wrong install dir for dracut modules
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Low normal (vote)
Assignee: Richard Yao (RETIRED)
URL: https://github.com/zfsonlinux/zfs/iss...
Whiteboard: Pull request pending QA review
Keywords: Inclusion, PATCH
Depends on:
Blocks:
 
Reported: 2012-01-31 22:28 UTC by Marcin Mirosław
Modified: 2012-10-06 15:50 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 Marcin Mirosław 2012-01-31 22:28:35 UTC
# equery f zfs|grep dracut
/usr/share/dracut
/usr/share/dracut/modules.d
/usr/share/dracut/modules.d/90zfs
/usr/share/dracut/modules.d/90zfs/module-setup.sh
/usr/share/dracut/modules.d/90zfs/mount-zfs.sh
/usr/share/dracut/modules.d/90zfs/parse-zfs.sh

Dracut expects modules to be placed in /usr/lib/dracut/modules.d/ dir.
Comment 1 Mike Gilbert gentoo-dev 2012-02-01 00:01:54 UTC
dracut-013 installs modules in /usr/share/dracut/modules.d
dracut-014 moves them to /usr/lib/dracut/modules.d

Yuck.
Comment 2 Richard Yao (RETIRED) gentoo-dev 2012-02-01 01:10:04 UTC
I am preparing to submit ZFS support patches for inclusion into Gentoo's sys-kernel/genkernel. If you are set on using the latest version of Dracut, Zachary Bedell from the ZFSOnLinux project maintains an overlay that you can use to obtain it:

https://github.com/pendor/gentoo-zfs-overlay

As per my chat with Amadeusz Żołnowski (the Gentoo dracut maintainer) in IRC last night, I plan to talk with Zachary Bedell about submitting these modules for inclusion into dracut upstream. The current plan is to move these into the dracut ebuild after they are accepted.

After the situation with upstream is resolved, I will reassign responsibility to Amadeusz Żołnowski. In the mean time, I suggest that you use sys-kernel/dracut-013, which is known to work with the current sys-fs/zfs-9999.
Comment 3 Richard Yao (RETIRED) gentoo-dev 2012-02-01 01:51:12 UTC
I would change this bug's status to in progress if I could, but I don't seem to have the authority to do that.

With that said, I filed a bug report with upstream describing how the Gentoo developers would like to resolve this:

https://github.com/zfsonlinux/zfs/issues/546

I also sent an email to Zachary Bedell about it.
Comment 4 Richard Yao (RETIRED) gentoo-dev 2012-02-01 05:55:10 UTC
I have submitted my patches to genkernel upstream for review. Anyone interested in using them in the interim can use the genkernel-9999 ebuild from my overlay:

layman -o https://raw.github.com/gentoofan/zfs-overlay/master/overlay.xml -f -a zfs
Comment 5 Zachary Bedell 2012-02-05 18:54:38 UTC
I've submitted a pull request to ZFS upstream which should allow the configure script to figure out where Dracut lives on the current system.  It's attached to the github issue: https://github.com/zfsonlinux/zfs/issues/546
Comment 6 Richard Yao (RETIRED) gentoo-dev 2012-07-28 03:03:23 UTC
I have collected the work of the ZFSOnLinux community on the ZFS dracut module into the ryao branch of the zfsonlinux/dracut git repository in preparation for an upstream pull request:

https://github.com/zfsonlinux/dracut/compare/master...ryao
Comment 7 Richard Yao (RETIRED) gentoo-dev 2012-10-06 15:50:14 UTC
dracut support has been removed from the ebuilds in the tree, so this is no longer an issue.