Jump to content

Photo

boot can't find zfs commands


9 replies to this topic

#1
mauricev

mauricev

    Member

  • Members
  • PipPip
  • 13 posts

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


#2
mauricev

mauricev

    Member

  • Members
  • PipPip
  • 13 posts

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.


#3
cardinal

cardinal

    Advanced Member

  • Members
  • PipPipPip
  • 230 posts

Use the ZFS_Install_Guide



#4
mauricev

mauricev

    Member

  • Members
  • PipPip
  • 13 posts

It's a bug, http://bugs.gentoo.o...g.cgi?id=617666



#5
Oleg Vinichenko

Oleg Vinichenko

    Staff

  • Moderators
  • 357 posts

do you have several gcc's installed?


www.funtoo.org

#6
mauricev

mauricev

    Member

  • Members
  • PipPip
  • 13 posts

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).



#7
Oleg Vinichenko

Oleg Vinichenko

    Staff

  • Moderators
  • 357 posts

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.


www.funtoo.org

#8
mauricev

mauricev

    Member

  • Members
  • PipPip
  • 13 posts

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

 

The issue is that grub-mkconfig puts the wrong initramfs into grub.cfg.



#9
Oleg Vinichenko

Oleg Vinichenko

    Staff

  • Moderators
  • 357 posts

hmm. it puts older initramfs? can you give more details on a problem? i going to test zfs install myself on spare ssd.


www.funtoo.org

#10
mauricev

mauricev

    Member

  • Members
  • PipPip
  • 13 posts

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.





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users