diff --git a/modules.d/90lvm/module-setup.sh b/modules.d/90lvm/module-setup.sh index 7622e4b479..2218869cd9 100755 --- a/modules.d/90lvm/module-setup.sh +++ b/modules.d/90lvm/module-setup.sh @@ -50,6 +50,12 @@ installkernel() { install() { inst_multiple lvm grep + # install lvm commands symlinks useful for emergency shell + _lvm_bin=$(find_binary lvm) + while read -r -d '' file; do + inst "${file}" + done < <(find -L /sbin -maxdepth 1 -samefile "$_lvm_bin" -print0) + if [[ $hostonly_cmdline == "yes" ]]; then local _lvmconf _lvmconf=$(cmdline)