Browse Source

dracut-functions.sh:fix check_vol_slaves() volume group name stripping

commit 466a59984a removed whitespace
stripping from lvm volume group names.

(cherry picked from commit 2fd8588da5)
Harald Hoyer 9 years ago
parent
commit
28665b4fa5
  1. 2
      dracut-functions.sh

2
dracut-functions.sh

@ -687,7 +687,7 @@ check_vol_slaves() { @@ -687,7 +687,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

Loading…
Cancel
Save