Blame SOURCES/0363-dracut-functions.sh-fix-check_vol_slaves-volume-grou.patch

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