Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 552052 - genkernel looks for zfs and btrfs binaries by default
Summary: genkernel looks for zfs and btrfs binaries by default
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:
Depends on: 556398
Blocks:
  Show dependency tree
 
Reported: 2015-06-14 05:48 UTC by tescas
Modified: 2016-02-29 21:49 UTC (History)
2 users (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 tescas 2015-06-14 05:48:18 UTC
: Gentoo Linux Genkernel; Version 3.4.49.2
 Running with options: all

 Using genkernel.conf from /etc/genkernel.conf
 Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86/config.sh ..
 Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86/modules_load ..

 Linux Kernel 3.18.12-gentoo for x86...
 .. with config file /usr/share/genkernel/arch/x86/kernel-config
 kernel: Using config from /usr/share/genkernel/arch/x86/kernel-config
         Previous config backed up to .config--2015-06-13--22-31-25.bak
 kernel: >> Running mrproper...
         >> Running oldconfig...
 kernel: >> Cleaning...
         >> Compiling 3.18.12-gentoo bzImage...
         >> Not installing firmware as it's included in the kernel already (CONFIG_FIRMWARE_IN_KERNEL=y)...
         >> Compiling 3.18.12-gentoo modules...
         >> Generating module dependency data...
 Copying config for successful build to /etc/kernels/kernel-config-x86-3.18.12-gentoo
 busybox: >> Applying patches...
           - 1.18.1-openvt.diff
           - busybox-1.20.1-mdstart.patch
           - busybox-1.20.2-bunzip2.patch
           - busybox-1.20.2-glibc-sys-resource.patch
           - busybox-1.20.2-modprobe.patch
           - busybox-1.7.4-signal-hack.patch
 busybox: >> Configuring...
 busybox: >> Compiling...
 busybox: >> Copying to cache...
 initramfs: >> Initializing...
         >> Appending base_layout cpio data...
         >> Appending auxilary cpio data...
         >> Copying keymaps
         >> Appending busybox cpio data...
         >> Appending modules cpio data...
         >> Appending zfs cpio data...
 ERROR: Binary /sbin/mount.zfs could not be found



Reproducible: Always

Steps to Reproduce:
1. --- genkernel all 

: Gentoo Linux Genkernel; Version 3.4.49.2
 Running with options: all

 Using genkernel.conf from /etc/genkernel.conf
 Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86/config.sh ..
 Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86/modules_load ..

 Linux Kernel 3.18.12-gentoo for x86...
 .. with config file /usr/share/genkernel/arch/x86/kernel-config
 kernel: Using config from /usr/share/genkernel/arch/x86/kernel-config
         Previous config backed up to .config--2015-06-13--22-31-25.bak
 kernel: >> Running mrproper...
         >> Running oldconfig...
 kernel: >> Cleaning...
         >> Compiling 3.18.12-gentoo bzImage...
         >> Not installing firmware as it's included in the kernel already (CONFIG_FIRMWARE_IN_KERNEL=y)...
         >> Compiling 3.18.12-gentoo modules...
         >> Generating module dependency data...
 Copying config for successful build to /etc/kernels/kernel-config-x86-3.18.12-gentoo
 busybox: >> Applying patches...
           - 1.18.1-openvt.diff
           - busybox-1.20.1-mdstart.patch
           - busybox-1.20.2-bunzip2.patch
           - busybox-1.20.2-glibc-sys-resource.patch
           - busybox-1.20.2-modprobe.patch
           - busybox-1.7.4-signal-hack.patch
 busybox: >> Configuring...
 busybox: >> Compiling...
 busybox: >> Copying to cache...
 initramfs: >> Initializing...
         >> Appending base_layout cpio data...
         >> Appending auxilary cpio data...
         >> Copying keymaps
         >> Appending busybox cpio data...
         >> Appending modules cpio data...
         >> Appending zfs cpio data...
 ERROR: Binary /sbin/mount.zfs could not be found

2. --> missing --no-zfs 
2. --> check /etc/genkernel.conf 





3. -- check genkernel option to disable:

# genkernel --help |grep zfs

        --zfs                   Include ZFS support
        --no-zfs                Exclude ZFS support


->  genkernel -no-zfs  all


2.- or check /etc/genkernel.conf

foo=/etc/genkernel.conf

grep -i zfs $foo

# sed -i$( date '%y%m%d.%H%M').bak $foo
sed -i.000.bak  's/^#ZFS="no"/ZFS="no"/   $foo 

ls $foo*
grep -i zfs $foo
grep -i zfs $foo
Comment 1 tescas 2015-06-14 07:12:12 UTC
?
Do we have to 

#  emerge sys-fs/zfs  

or 

# emerge sys-fs/zfs-kmo

before ?
Comment 2 Alex Legler (RETIRED) archtester gentoo-dev Security 2015-06-14 08:54:14 UTC
I remember this happening in the past, too.

Can we please assume that ZFS isn't there by default, and don't make people have to set --no-zfs.
Comment 3 Rick Farina (Zero_Chaos) gentoo-dev 2015-08-20 16:33:51 UTC
this does not appear to be an issue with the latest kernel, so close this bug on next stabilization
Comment 4 Robert 2015-12-08 08:15:19 UTC
I have been having nothing but problems with this genkerel. I have been working on installing Gentoo for 3 days now. Another thing, initramfs will not build.
Comment 5 Rick Farina (Zero_Chaos) gentoo-dev 2015-12-08 16:51:55 UTC
(In reply to Robert from comment #4)
> I have been having nothing but problems with this genkerel. I have been
> working on installing Gentoo for 3 days now. Another thing, initramfs will
> not build.

the new genkernel has recently been stablized on most arches so this should be good.
Comment 6 Robert 2015-12-09 01:30:22 UTC
This fail was yesterday, 12-07-15, I was unable to build genkernel at all. I even masked the newest version and used the last stable build and it did the same thing.
Comment 7 Patrick Lauer gentoo-dev 2016-02-08 20:20:27 UTC
Latest ~arch sometimes exhibits this issue:

* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..
*
* ERROR: Binary /sbin/mount.zfs could not be found
* 
* -- End log... --


[ebuild   R    ] sys-kernel/genkernel-3.4.52.4::gentoo  USE="-cryptsetup (-ibm) (-selinux)" 0 KiB
Comment 8 Patrick Lauer gentoo-dev 2016-02-08 20:35:10 UTC
* Running with options: initramfs --no-mountboot --bootdir=/var/tmp/portage/sys-fs/buildkernel-4.4.1/work/buildkernel-4.4.1/final/boot --logfile=/var/tmp/portage/sys-fs/buildkernel-4.4.1/work/buildkernel-4.4.1/genkernel.log --tempdir=/var/tmp/portage/sys-fs/buildkernel-4.4.1/work/buildkernel-4.4.1/tmp --module-prefix=/var/tmp/portage/sys-fs/buildkernel-4.4.1/work/buildkernel-4.4.1/final --kerneldir=/usr/src/linux-4.4.1-gentoo --kernel-config=/var/tmp/portage/sys-fs/buildkernel-4.4.1/work/buildkernel-4.4.1/tmp/kernel/.config --cachedir=/var/tmp/portage/sys-fs/buildkernel-4.4.1/work/buildkernel-4.4.1/cache --lvm --mdadm --no-zfs
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..
*
* ERROR: Binary /sbin/btrfs could not be found
* 
* -- End log... --
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-02-28 22:33:10 UTC
(In reply to Patrick Lauer from comment #8)
> * Running with options: initramfs --no-mountboot
> --bootdir=/var/tmp/portage/sys-fs/buildkernel-4.4.1/work/buildkernel-4.4.1/
> final/boot
> --logfile=/var/tmp/portage/sys-fs/buildkernel-4.4.1/work/buildkernel-4.4.1/
> genkernel.log
> --tempdir=/var/tmp/portage/sys-fs/buildkernel-4.4.1/work/buildkernel-4.4.1/
> tmp
> --module-prefix=/var/tmp/portage/sys-fs/buildkernel-4.4.1/work/buildkernel-4.
> 4.1/final --kerneldir=/usr/src/linux-4.4.1-gentoo
> --kernel-config=/var/tmp/portage/sys-fs/buildkernel-4.4.1/work/buildkernel-4.
> 4.1/tmp/kernel/.config
> --cachedir=/var/tmp/portage/sys-fs/buildkernel-4.4.1/work/buildkernel-4.4.1/
> cache --lvm --mdadm --no-zfs
> * Using genkernel.conf from /etc/genkernel.conf
> * Sourcing arch-specific config.sh from
> /usr/share/genkernel/arch/x86_64/config.sh ..
> * Sourcing arch-specific modules_load from
> /usr/share/genkernel/arch/x86_64/modules_load ..
> *
> * ERROR: Binary /sbin/btrfs could not be found
> * 
> * -- End log... --

I see that you didn't pass any params to explicitly enable or disable btrfs. In which case, the default would be to enable it if your rootfs is btrfs.

Is that the case? Alternatively, was it maybe set in your config file?
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-02-28 22:34:52 UTC
Can somebody that has this problem still run with --loglevel=5 and attach the output?
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-02-29 21:49:24 UTC
This has a minimal fix in commit c37d0daba2f264c72a945dcebd08e9a42d8649f7.

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=c37d0daba2f264c72a945dcebd08e9a42d8649f7


Further changes should improve the detection function.