aboutsummaryrefslogtreecommitdiff
path: root/handlers/sys.in
diff options
context:
space:
mode:
Diffstat (limited to 'handlers/sys.in')
-rwxr-xr-xhandlers/sys.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/handlers/sys.in b/handlers/sys.in
index a92663e..fcf3e31 100755
--- a/handlers/sys.in
+++ b/handlers/sys.in
@@ -649,8 +649,11 @@ function doLvmBackup () {
debug "$VGS --options vg_name --noheadings | @SED@ 's/^[ ]*//' | @SED@ 's/[ ]*$//' | tr '\n' ' '"
vgs=`$VGS --options vg_name --noheadings | @SED@ 's/^[ ]*//' | @SED@ 's/[ ]*$//' | tr '\n' ' '`
debug "Let's try to backup LVM metadata for detected volume groups: $vgs"
- debug "$VGCFGBACKUP --file \"${lvmdir}\"/\'%s\' $vgs"
- output=`$VGCFGBACKUP --file "${lvmdir}"/'%s' $vgs`
+ for vg in $vgs
+ do
+ debug "$VGCFGBACKUP --file \"${lvmdir}\"/\'%s\' $vg"
+ output=`$VGCFGBACKUP --file "${lvmdir}"/'%s' $vg`
+ done
exit_code=$?
debug $output
case $exit_code in