Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 817683 - sys-fs/zfs-kmod: why is CONFIG_BLK_DEV_INITRD required with USE="-rootfs"?
Summary: sys-fs/zfs-kmod: why is CONFIG_BLK_DEV_INITRD required with USE="-rootfs"?
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-11 03:09 UTC by programming
Modified: 2021-10-16 04:25 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 programming 2021-10-11 03:09:14 UTC
Compiling ZFS zfs-kmod-2.1.1 with kernel 5.14.9-gentoo and it complains that CONFIG_BLK_DEV_INITRD is not set. This would make sense if use flag rootfs were set, but why would it be needed if it’s not?
Comment 1 Joonas Niilola gentoo-dev 2021-10-11 05:32:48 UTC
Would you have a build.log and 'emerge --info' available?
Comment 2 Georgy Yakovlev archtester gentoo-dev 2021-10-11 18:55:43 UTC
>   use rootfs && \
>        CONFIG_CHECK="${CONFIG_CHECK}
>            BLK_DEV_INITRD
>            DEVTMPFS
>    "

code from ebuild, which reads as:
if rootfs flag is set, check for BLK_DEV_INITRD and DEVTMPFS to be enabled.


so yeah, please upload build lo and kernel config too, curious why it complains for you.

closing as NEEDINFO, reopen after information is uploaded.
Comment 3 programming 2021-10-16 04:25:37 UTC
Here's what's going on. The use flag "rootfs" is applied separately to zfs and zfs-kmod. I had it turned off for the former, but not the latter. Once I fixed that, it’s working without requiring an initrd.