]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - modules.d/90lvm/module-setup.sh
Factor out all the "type -V" commands
[thirdparty/dracut.git] / modules.d / 90lvm / module-setup.sh
index a64e5d6629e051fa8cbfbf0d5a12a8545762d49b..357797fe99a880ba0428637947f722573167137a 100755 (executable)
@@ -5,7 +5,7 @@
 # called by dracut
 check() {
     # No point trying to support lvm if the binaries are missing
-    type -P lvm >/dev/null || return 1
+    require_binaries lvm || return 1
 
     [[ $hostonly ]] || [[ $mount_needs ]] && {
         for fs in "${host_fs_types[@]}"; do