https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238258

--- Comment #3 from c...@soi.spb.ru ---
Sorry for the incomplete description.

New loader (unified with zfsloader) can't find zfs pool on an unpartitioned
disk.

How to repeat:
1. Connect fresh zeroed-out disk to a freebsd machine.
2. Create zfs pool right over the whole disk: zpool create testpool da0.
3. zpool set bootfs=testpool testpool
4. mkdir -p /testpool/usr/src
5. cd /testpool/usr/src
6. svnlite co svn://svn.freebsd.org/base/stable/11 .
7. export MAKEOBJDIRPREFIX=/testpool/usr/obj
8. make buildworld
9. make buildkernel
10. make DESTDIR=/testpool installworld
11. make DESTDIR=/testpool distribution
12. make DESTDIR=/testpool installkernel
13. echo 'zfs_load="YES"' >> /testpool/boot/loader.conf
14. echo 'devfs /dev devfs rw,multilabel 0 0' >> /testpool/etc/fstab
15. cp -p /testpool/boot/zfsboot /tmp
16. zpool export testpool
17. dd if=/tmp/zfsboot of=/dev/da0 bs=512 count=1
18. dd if=/tmp/zfsboot of=/dev/da0 bs=512 skip=1 seek=1k
19. Reboot from the newly created pool and observe on the console:

FreeBSD/x86 bootstrap loader, Revision 1.1
(Thu May 30 18:55:21 MSK 2019 root@white)
ZFS: can't find pool by guid
ZFS: can't find pool by guid
ZFS: can't find pool by guid
.....

Workaround: copy old (e.g. from 10.2-RELEASE) zfsloader over /boot/loader (or
wherever boot block expect to find it). Then it will boot correctly.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to