Jump to content
Funtoo Linux
  • 0
mauricev

boot can't find zfs commands

Question

I'm trying to boot with a zfs root pool. The boot is failing because the init can't find zfs commands. This makes sense as the root pool, where the zfs commands live, is not yet mounted. This makes sense, but how can it be resolved?

init: line 390: /sbin/zpool: not found
init: line 671: zfs: not found

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0

The problem appears to be when the initramfs is created, grub uses the default debian one and not the just created one. I had to replace it manually and then remake the grub.cfg file. The zfs commands are in the correct initramfs.

 

However, the import of the pool still fails with the error

libgcc_s.so.1 must be installed for pthread_cancel to work.

Share this post


Link to post
Share on other sites
  • 0

No, I followed the instructions of the install guide, so only 5.3.0 is installed. However, I worked around it by replacing genkernel with genkernel-next.

 

Also, grub-mkconfig -o /boot/grub/grub.cfg doesn't work properly as it's used in the guide. There is an initramfs prebuilt for debian. It uses this one despite its claiming to use the one just built. The debian one must be replaced by the one just built manually (or use genkernel to rebuild the debian one).

Share this post


Link to post
Share on other sites
  • 0

install guide mentions clearly that user need to rebuild initramfs with zfs.

surprisingly enough, genkernel-next using same code for zfs detection and also same hack for libgcc_s.so copy, so it's unclear why genkernel-next does work and genkernel doesn't. I'll look into that problem.

Share this post


Link to post
Share on other sites
  • 0

It puts the debian-sources' initramfs in even though it claims to be putting in the just built initramfs. I manually renamed the just built initramfs to the debian-sources' one and that works.

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×