From: Harald Hoyer Date: Mon, 18 Jan 2016 15:59:42 +0000 (+0100) Subject: dracut-functions.sh:fix check_vol_slaves() volume group name stripping X-Git-Tag: 045~201 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2fd8588da51a0e43684852dcdabe327aca684a9f;p=thirdparty%2Fdracut.git dracut-functions.sh:fix check_vol_slaves() volume group name stripping commit 466a59984a095f33993cffd5a3bea40826469b03 removed whitespace stripping from lvm volume group names. --- diff --git a/dracut-functions.sh b/dracut-functions.sh index 59747ec1d..c7ea9f580 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -580,7 +580,7 @@ check_vol_slaves() { if [[ $_lv = $2 ]]; then _vg=$(lvm lvs --noheadings -o vg_name $i 2>/dev/null) # strip space - _vg=$(printf "%s\n" "$_vg") + _vg="${_vg//[[:space:]]/}" if [[ $_vg ]]; then for _pv in $(lvm vgs --noheadings -o pv_name "$_vg" 2>/dev/null) do