6 # if we don't have btrfs installed on the host system,
7 # no point in trying to support it in the initramfs.
8 require_binaries btrfs ||
return 1
10 [[ $hostonly ]] ||
[[ $mount_needs ]] && {
11 for fs
in "${host_fs_types[@]}"; do
12 [[ "$fs" == "btrfs" ]] && return 0
29 # Make sure btfs can use fast crc32c implementations where available (bsc#1011554)
35 if ! inst_rules
64-btrfs.rules
; then
36 inst_rules
"$moddir/80-btrfs.rules"
37 case "$(btrfs --help)" in
39 inst_script
"$moddir/btrfs_device_ready.sh" /sbin
/btrfs_finished
;;
41 inst_script
"$moddir/btrfs_finished.sh" /sbin
/btrfs_finished
;;
45 if ! dracut_module_included
"systemd"; then
46 inst_hook initqueue
/timeout
10 "$moddir/btrfs_timeout.sh"
49 inst_multiple
-o btrfsck btrfs-zero-log
50 inst $
(command -v btrfs
) /sbin
/btrfs