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