Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 499716

Summary: sys-kernel/genkernel needs to be updated to work with the new btrfs-progs
Product: Gentoo Hosted Projects Reporter: Austin S. Hemmelgarn <ahferroin7>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED FIXED    
Severity: normal CC: ahferroin7, bugs, martin.dummer
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: correct btrfs program name

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