dasJ / sd-zfs

Compatibility between systemd and ZFS roots
MIT License
43 stars 13 forks source link

Option to search for devices in a directory #18

Closed rwanyoike closed 7 years ago

rwanyoike commented 7 years ago

This idea comes from the ZFS ArchWiki recommendation against importing pools using /dev/sd? and https://github.com/zfsonlinux/zfs/wiki/FAQ#selecting-dev-names-when-creating-a-pool.

The zfs mkinitcpio hook on Archlinux for example has:

To search for devices in a directory other than "/dev":

        zfs_import_dir=/dev/disk/by-uuid
            or
        zfs_import_dir=/dev/disk/by-partuuid
            or
        zfs_import_dir=/dev/disk/by-path
            etc.
dasJ commented 7 years ago

ZFS searches the devices recursively, I use /dev/mapper paths. So I don't think there is any reason to specify the directory.