Summary: | sys-kernel/genkernel - "Add BTRFS support" does not do anything | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Kristoffer <kristosy> |
Component: | genkernel | Assignee: | Gentoo Genkernel Maintainers <genkernel> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Kristoffer
2021-04-30 05:59:06 UTC
"Does not do anything" is wrong, like man page is saying, the option will cause genkernel to add btrfs-progs to initramfs: > --[no-]btrfs > Includes or excludes Btrfs support. When enabled, this will > compile btrfs-progs for you. It actually never took care of required kernel options -- it was only about "/sbin/btrfs device scan" (https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=d41ebc4d721a8706d0b0f7c5cd1ed8dab42d667c) which was necessary to start multi-device BTRFS setups in the past. Since we moved back to UDEV in >=4.1.0, this isn't used and needed anymore. Today it is like --[no-]e2fsprogs or --[no-]xfsprogsm, i.e. it will only add tools necessary to be able to check/repair filsystem from initramfs if you want to. And that's what documented in man page. I'll think about renaming option to something like --btrfs-progs or updating at least text in /etc/genkernel.conf. Also, you assumption that it should be built-in is wrong. By default, genkernel will produce a modular kernel. Only if it will detect that given kernel.config doesn't support modules (https://gitweb.gentoo.org/proj/genkernel.git/tree/gen_configkernel.sh?h=v4.2.1#n433) it will built-in. Of course it will respect what user has already set. Ahh, I understand, my bad. I did not read the man pages as the /etc/genkernel.conf seemed to be well commented. I do agree however that the text should be updated as it is confusing to set Btrfs support to Yes and then have a unbootable computer because the rootfs is Btrfs. |