Joined: 22 Aug 2006
|Posted: Wed Mar 06, 2013 9:05 pm Post subject: ZFS on root from UEFI [solved]
I am hoping that someone can help me figure this out as I am really close to getting it to work. I am using genkernel with the following options:
genkernel all --no-clean --no-mountboot --zfs --callback="modules-rebuild rebuild"
I have the EFI stub configured and I updated the bootmanager with:
echo "dozfs initrd=\EFI\gentoo\initramfs_zfs.img root=ZFS=rpool/ROOT/gentoo ro" | iconv -f ascii -t ucs2 | efibootmgr -c -L "Gentoo ZFS" -l '\EFI\gentoo\kernel_zfs.efi' -d /dev/sdb -p 1 --append-binary-args -
where rpool/ROOT/gentoo is the root location. Anyway, it looks like ti will load but keep failing with
"could not find root block device in ZFS=rpool/ROOT/gentoo"
if I drop to a sheel and do zpool list, it shows rpool as faulted. If I then export it then import it, it show it as online.
How can I figure out what in the initramfs / boot process is causing it to fail? Seems to me like it should be no problem.
*********** Solution ***************
My zpool.cache file was out of date. Drive names had changed and it didn't like that. Created a new one and copied it into a chroot environment, remade the initramfs, and everything seemed to work.