Move reexec.Init() to beginning of wwctl

- Fixes: #1879

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-08-01 01:08:20 -06:00
parent 073ecdf82c
commit ebc101b2b1
3 changed files with 6 additions and 5 deletions

View File

@@ -4,10 +4,15 @@ import (
"fmt"
"os"
"github.com/containers/storage/pkg/reexec"
"github.com/warewulf/warewulf/internal/app/wwctl"
)
func main() {
if reexec.Init() {
return
}
root := wwctl.GetRootCommand()
err := root.Execute()