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