From 3eca225c1dde34d6d2dd3fa75bec5aa002243d42 Mon Sep 17 00:00:00 2001 From: Aaron Cirillo <114004799+aaroncirillo-cision@users.noreply.github.com> Date: Thu, 24 Oct 2024 14:44:28 -0400 Subject: [PATCH] adding path suffix to multipath chroot command --- pkg/multipath/multipath.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/multipath/multipath.go b/pkg/multipath/multipath.go index 374445f..3aebcce 100644 --- a/pkg/multipath/multipath.go +++ b/pkg/multipath/multipath.go @@ -24,6 +24,7 @@ import ( "context" "errors" "fmt" + "os" "strings" "github.com/dell/gobrick/internal/logger" @@ -200,7 +201,7 @@ func (mp *Multipath) runCommand(ctx context.Context, command string, args []stri } if mp.chroot != "" { - args = append([]string{mp.chroot, command}, args...) + args = append([]string{mp.chroot + os.Getenv("MP_CHROOT_SUFFIX"), command}, args...) command = "chroot" } logger.