Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
kiwi
:
Appliance
>
dracut
> 0020-dracut-functions.sh-fix-check_vol_slaves-volume-grou.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0020-dracut-functions.sh-fix-check_vol_slaves-volume-grou.patch of Package dracut
From 2a273560f0acf2f7e71d566c69be978a789e0e89 Mon Sep 17 00:00:00 2001 From: Harald Hoyer <harald@redhat.com> Date: Mon, 18 Jan 2016 16:59:42 +0100 Subject: [PATCH] dracut-functions.sh:fix check_vol_slaves() volume group name stripping commit 466a59984a095f33993cffd5a3bea40826469b03 removed whitespace stripping from lvm volume group names. --- dracut-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut-functions.sh b/dracut-functions.sh index 59747ec1..c7ea9f58 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