From 0f6d5cdd7f010440b65d168942e736b92db548c2 Mon Sep 17 00:00:00 2001 From: Jiahui <4543bxy@gmail.com> Date: Wed, 18 Sep 2024 16:54:07 +0800 Subject: [PATCH] fix env render with app images (#5079) --- pkg/filesystem/rootfs/rootfs_default.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/filesystem/rootfs/rootfs_default.go b/pkg/filesystem/rootfs/rootfs_default.go index 6e74039981c..3215d2d11b5 100644 --- a/pkg/filesystem/rootfs/rootfs_default.go +++ b/pkg/filesystem/rootfs/rootfs_default.go @@ -153,7 +153,7 @@ func (f *defaultRootfs) mountRootfs(cluster *v2.Cluster, ipList []string) error return err } renderCommand := getRenderCommand(pathResolver.RootFSSealctlPath(), targetDir) - return execer.CmdAsync(master0, envProcessor.WrapShell(master0, renderCommand)) + return execer.CmdAsync(master0, stringsutil.RenderShellWithEnv(renderCommand, mountInfo.Env)) } return nil })