a0a3b4
From 28665b4fa55f18760ade77602d69f892d86b0bbd Mon Sep 17 00:00:00 2001
a0a3b4
From: Harald Hoyer <harald@redhat.com>
a0a3b4
Date: Mon, 18 Jan 2016 16:59:42 +0100
a0a3b4
Subject: [PATCH] dracut-functions.sh:fix check_vol_slaves() volume group name
a0a3b4
 stripping
a0a3b4
a0a3b4
commit 466a59984a095f33993cffd5a3bea40826469b03 removed whitespace
a0a3b4
stripping from lvm volume group names.
a0a3b4
a0a3b4
(cherry picked from commit 2fd8588da51a0e43684852dcdabe327aca684a9f)
a0a3b4
---
a0a3b4
 dracut-functions.sh | 2 +-
a0a3b4
 1 file changed, 1 insertion(+), 1 deletion(-)
a0a3b4
a0a3b4
diff --git a/dracut-functions.sh b/dracut-functions.sh
1755ca
index 9218779c..d71ff676 100755
a0a3b4
--- a/dracut-functions.sh
a0a3b4
+++ b/dracut-functions.sh
a0a3b4
@@ -687,7 +687,7 @@ check_vol_slaves() {
a0a3b4
         if [[ $_lv = $2 ]]; then
a0a3b4
             _vg=$(lvm lvs --noheadings -o vg_name $i 2>/dev/null)
a0a3b4
             # strip space
a0a3b4
-            _vg=$(printf "%s\n" "$_vg")
a0a3b4
+            _vg="${_vg//[[:space:]]/}"
a0a3b4
             if [[ $_vg ]]; then
a0a3b4
                 for _pv in $(lvm vgs --noheadings -o pv_name "$_vg" 2>/dev/null)
a0a3b4
                 do