First, $host_fs_types is an array. Second, use strstr to match btrfs type. Cc: Harald Hoyer <harald@xxxxxxxxxx> Signed-off-by: WANG Cong <xiyou.wangcong@xxxxxxxxx> --- diff --git a/modules.d/90btrfs/module-setup.sh b/modules.d/90btrfs/module-setup.sh index a141dda..135abc6 100755 --- a/modules.d/90btrfs/module-setup.sh +++ b/modules.d/90btrfs/module-setup.sh @@ -13,8 +13,8 @@ check() { [[ $hostonly ]] || [[ $mount_needs ]] && { local _found - for fs in $host_fs_types; do - [[ "$fs" = "|btrfs" ]] && _found="1" + for fs in ${host_fs_types[@]}; do + strstr "$fs" "\|btrfs" && _found="1" done [[ $_found ]] || return 1 unset _found -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html