]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - modules.d/90btrfs/module-setup.sh
Factor out all the "type -V" commands
[thirdparty/dracut.git] / modules.d / 90btrfs / module-setup.sh
index 80a538fd574469c2455861af9a8a473965dcc665..406fd6d4c91f43d61c06c07f52ec273dbc576de8 100755 (executable)
@@ -7,7 +7,7 @@ check() {
     local _rootdev
     # if we don't have btrfs installed on the host system,
     # no point in trying to support it in the initramfs.
-    type -P btrfs >/dev/null || return 1
+    require_binaries btrfs || return 1
 
     [[ $hostonly ]] || [[ $mount_needs ]] && {
         for fs in ${host_fs_types[@]}; do