Bug 223275 - zfsloader fails to see datasets
Summary: zfsloader fails to see datasets
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.1-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-27 10:05 UTC by bergerkos
Modified: 2022-04-09 06:56 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bergerkos 2017-10-27 10:05:22 UTC
I have ZFS on raw disk (full-disk ZFS). My ZFS has the structure of type $zpool/ROOT/$datasets, and zfsloader resides in mypool/ROOT/freebsd-root/@/boot/. In this configuration zfsloader is only  able to report the "device" zfs:mypool.

Any of the commands lszfs aren't able to go beyond that, they return error "wrong number of arguments". I've tried all variations of:
lszfs -v zfs:mypool/ROOT:
lszfs -v zfs:mypool/ROOT/freebsd-root:

and all such. The same result.
It must be added that zfsloader is loaded via GRUB:
kfreebsd /mypool/ROOT/freebsd-root/@/boot/zfsloader

When loaded zfsloader doesn't even have $currdev set, it only has zfs_root set to zfs:mypool (that's the name of my zpool), but can't go any further. It must be added that with the previous versions of zfsloader it WAS possible to change $currdev and set it to the needed dataset etc.