]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(lvm): add missing grep requirement
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Mon, 11 Apr 2022 06:33:17 +0000 (08:33 +0200)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Mon, 11 Apr 2022 07:33:31 +0000 (07:33 +0000)
Since commit https://github.com/dracutdevs/dracut/commit/7ffc5e38
lvm_scan.sh needs grep.

modules.d/90lvm/module-setup.sh

index 25be013322a4c81d9ceac91cb6f906e45154b61b..aa8c6db81f593ae7411fd7d8d2da1a37548fa70c 100755 (executable)
@@ -3,7 +3,7 @@
 # called by dracut
 check() {
     # No point trying to support lvm if the binaries are missing
-    require_binaries lvm || return 1
+    require_binaries lvm grep || return 1
 
     [[ $hostonly ]] || [[ $mount_needs ]] && {
         for fs in "${host_fs_types[@]}"; do
@@ -48,7 +48,7 @@ installkernel() {
 
 # called by dracut
 install() {
-    inst lvm
+    inst_multiple lvm grep
 
     if [[ $hostonly_cmdline == "yes" ]]; then
         local _lvmconf