mauricev Posted May 14, 2017 Report Share Posted May 14, 2017 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 Link to comment Share on other sites More sharing options...
0 mauricev Posted May 14, 2017 Author Report Share Posted May 14, 2017 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. Link to comment Share on other sites More sharing options...
0 cardinal Posted May 15, 2017 Report Share Posted May 15, 2017 Use the ZFS_Install_Guide Link to comment Share on other sites More sharing options...
0 mauricev Posted May 15, 2017 Author Report Share Posted May 15, 2017 It's a bug, http://bugs.gentoo.org/show_bug.cgi?id=617666 Link to comment Share on other sites More sharing options...
0 Oleg Vinichenko Posted May 15, 2017 Report Share Posted May 15, 2017 do you have several gcc's installed? Link to comment Share on other sites More sharing options...
0 mauricev Posted May 15, 2017 Author Report Share Posted May 15, 2017 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). Link to comment Share on other sites More sharing options...
0 Oleg Vinichenko Posted May 16, 2017 Report Share Posted May 16, 2017 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. Link to comment Share on other sites More sharing options...
0 mauricev Posted May 16, 2017 Author Report Share Posted May 16, 2017 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. Link to comment Share on other sites More sharing options...
0 Oleg Vinichenko Posted May 17, 2017 Report Share Posted May 17, 2017 hmm. it puts older initramfs? can you give more details on a problem? i going to test zfs install myself on spare ssd. Link to comment Share on other sites More sharing options...
0 mauricev Posted May 19, 2017 Author Report Share Posted May 19, 2017 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. Link to comment Share on other sites More sharing options...
Question
mauricev
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?
Link to comment
Share on other sites
9 answers to this question
Recommended Posts