From 1d8f89a0b6f5b747b15df60ec4c2289c4bae5efa Mon Sep 17 00:00:00 2001 From: Anton Sergunov Date: Wed, 26 Feb 2025 18:18:29 +0600 Subject: [PATCH] fix thin_dump command Signed-off-by: Anton Sergunov --- images/agent/src/internal/const.go | 1 + images/agent/src/internal/utils/commands.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/images/agent/src/internal/const.go b/images/agent/src/internal/const.go index c441f042..63b86b7f 100644 --- a/images/agent/src/internal/const.go +++ b/images/agent/src/internal/const.go @@ -39,6 +39,7 @@ const ( DMSetupCmd = "/opt/deckhouse/sds/bin/dmsetup.static" LSBLKCmd = "/opt/deckhouse/sds/bin/lsblk.dynamic" LVMCmd = "/opt/deckhouse/sds/bin/lvm.static" + ThinDumpCmd = "thin_dump" // TODO: add static version TypeVGConfigurationApplied = "VGConfigurationApplied" TypeVGReady = "VGReady" diff --git a/images/agent/src/internal/utils/commands.go b/images/agent/src/internal/utils/commands.go index b8275bd6..72a0602b 100644 --- a/images/agent/src/internal/utils/commands.go +++ b/images/agent/src/internal/utils/commands.go @@ -738,7 +738,7 @@ func ThinDumpRaw(ctx context.Context, log logger.Logger, tpool, tmeta string) (o cmd = exec.CommandContext(ctx, internal.NSENTERCmd, - lvmStaticExtendedArgs([]string{"thin_dump", tmeta, "-m", "-f", "xml"})...) + nsentrerExpendedArgs(internal.ThinDumpCmd, tmeta, "-m", "-f", "xml")...) var output bytes.Buffer cmd.Stdout = &output