Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499716 - sys-kernel/genkernel needs to be updated to work with the new btrfs-progs
Summary: sys-kernel/genkernel needs to be updated to work with the new btrfs-progs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2014-01-30 01:45 UTC by Austin S. Hemmelgarn
Modified: 2017-09-07 00:47 UTC (History)
3 users (show)

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


Attachments
correct btrfs program name (btrfs.patch,675 bytes, patch)
2014-03-29 04:41 UTC, Wil
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Austin S. Hemmelgarn 2014-01-30 01:45:58 UTC
Upstream btrfs-progs has deprecated and removed the btrfsctl command and replaced it with tha multicall 'btrfs' binary.  For genkernel's initrds to work with multi-device btrfs filesystems, the following line needs to be added to the setup_btrfsctl function in /usr/share/genkernel/default/initrd.scripts:

[ -x /sbin/btrfs ] && /sbin/btrfs device scan
Comment 1 Wil 2014-03-29 04:41:54 UTC
Created attachment 373788 [details, diff]
correct btrfs program name

Same problem.  I've got a system with a RAID 1 btrfs root partition.  Using the attached patch & its working fine.
Comment 2 Christopher Head 2014-08-09 06:24:06 UTC
Using a lot of rootflags=device= goop works, but it would be nice to do this the proper way with btrfs device scan.
Comment 3 Austin S. Hemmelgarn 2015-07-20 18:54:19 UTC
Just for reference to anyone who may be interested, I've switched to sys-kernel/genkernel-next as that does actually handle current btrfs-progs correctly (although you need to add BTRFS=1 to /etc/genkernel.conf for it to actually include btrfs support in the generated initramfs).
Comment 4 Richard Yao (RETIRED) gentoo-dev 2015-08-26 18:01:39 UTC
This should be fixed in HEAD. The fix will be in v3.4.53. I am leaving this open until v3.4.53 is tagged to make it easier to track it.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-09-07 00:47:56 UTC
Already released