4 . /lib/dracut-zfs-lib.sh
14 # Delay until all required block devices are present.
17 if [ "${root}" = "zfs:AUTO" ] ; then
18 ZFS_DATASET="$(find_bootfs)"
19 if [ $? -ne 0 ] ; then
20 zpool import -N -a ${ZPOOL_IMPORT_OPTS}
21 ZFS_DATASET="$(find_bootfs)"
22 if [ $? -ne 0 ] ; then
23 warn "ZFS: No bootfs attribute found in importable pools."
30 info "ZFS: Using ${ZFS_DATASET} as root."
33 ZFS_DATASET="${ZFS_DATASET:-${root#zfs:}}"
34 ZFS_POOL="${ZFS_DATASET%%/*}"
36 if import_pool "${ZFS_POOL}" ; then
37 info "ZFS: Mounting dataset ${ZFS_DATASET}..."
38 if mount_dataset "${ZFS_DATASET}" ; then