From 90157e340a441af9dfb670b4f9c1e599f35a03be Mon Sep 17 00:00:00 2001 From: Gregory Kurtzer Date: Sat, 19 Dec 2020 21:06:04 -0800 Subject: [PATCH] Set the HISTFILE to /dev/null so we don't rebuild containers on every exec --- internal/app/wwctl/container/exec/child/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/app/wwctl/container/exec/child/main.go b/internal/app/wwctl/container/exec/child/main.go index 64222022..15a79e66 100644 --- a/internal/app/wwctl/container/exec/child/main.go +++ b/internal/app/wwctl/container/exec/child/main.go @@ -44,6 +44,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error { ps1string := fmt.Sprintf("[%s] Warewulf> ", containerName) os.Setenv("PS1", ps1string) + os.Setenv("HISTFILE", "/dev/null") err := syscall.Exec(args[1], args[1:], os.Environ()) if err != nil {