Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435458 - genkernel initramfs calls "zfs import" with non-existent -N flag
Summary: genkernel initramfs calls "zfs import" with non-existent -N flag
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-18 22:22 UTC by Alexander Zubkov
Modified: 2012-11-06 09:05 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 Alexander Zubkov 2012-09-18 22:22:47 UTC

    
Comment 1 Alexander Zubkov 2012-09-18 22:25:50 UTC
genkernel initramfs calls "zfs import" with unexisting -N flag.
This leads to error message during boot:

>> Importing ZFS pools
too many arguments
usage:
...
!! Imported ZFS pools failed

But it still boots after it.
Comment 2 Alexander Zubkov 2012-09-18 22:27:47 UTC
PS. Accidentally pressed "Enter" during entering bug, so description went empty. Sorry.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-11-02 17:07:27 UTC
ryao: your bug
Comment 4 Richard Yao (RETIRED) gentoo-dev 2012-11-05 18:07:12 UTC
genkernel calls `zpool import` rather than `zfs import`. How did you conclude that -N was non-existent? All versions of ZFS support -N and I do not see any indication from your error message that -N is non-existent.

Which versions of sys-fs/zfs and sys-kernel/genkernel do you have installed? Would you attach /boot/grub2/grub.cfg? Also, would you provide `emerge --info`?
Comment 5 Alexander Zubkov 2012-11-06 09:05:02 UTC
> genkernel calls `zpool import` rather than `zfs import`. How did you conclude that -N was non-existent? All versions of ZFS support -N and I do not see any indication from your error message that -N is non-existent.

Sorry. This may be my misunderstanding. I missed "-N", in version with "-a". Or may be I tested it from initrd shell, do not remember exactly.
I use dozfs=force. May be then there is other problem:
/sbin/zpool import -N -a "${ZPOOL_FORCE}"
Then "-f" flag will be in the end. And in manual page "-a" flag should be last.
I can not test right now, because this computer is hardly to perform experiments now. May be I can reproduce it somewhere else later.

> Which versions of sys-fs/zfs and sys-kernel/genkernel do you have installed? 

sys-fs/zfs-0.6.0_rc11
sys-kernel/genkernel-3.4.43

> Would you attach /boot/grub2/grub.cfg?

linux /ROOT/gentoo/@/boot/kernel dozfs=force real_root=ZFS=mypool/ROOT/gentoo
initrd /ROOT/gentoo/@/boot/initramfs

> Also, would you provide `emerge --info`?

May be later? There is too many unneeded text for now, I think. :)