Update wwclient such that each file in the runtime overlay is applied atomically, and only if modified. - Closes: #1307 - Closes: #1975 - Closes: #1226 Also adds --once flag to allow wwclient to be run one time. Signed-off-by: Jonathon Anderson <janderson@ciq.com>
22 lines
278 B
Go
22 lines
278 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/warewulf/warewulf/internal/app/wwclient"
|
|
)
|
|
|
|
func main() {
|
|
|
|
root := wwclient.GetRootCommand()
|
|
|
|
err := root.Execute()
|
|
if err != nil {
|
|
if wwclient.DebugFlag {
|
|
fmt.Printf("\nSTACK TRACE: %+v\n", err)
|
|
}
|
|
os.Exit(255)
|
|
}
|
|
}
|