Make wwctl image syncuser --write true by default

It can be disabled with `wwctl image syncuser --write=false`.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-02-11 09:44:19 -07:00
parent 01b3c28874
commit 8197484461
4 changed files with 4 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ func Syncuser(imageName string, write bool) error {
wwlog.Info("uid/gid synced for image %s", imageName)
} else {
if passwdSync.needsSync() || groupSync.needsSync() {
wwlog.Info("uid/gid not synced: run `wwctl image syncuser --write %s`", imageName)
wwlog.Info("uid/gid not synced: run `wwctl image syncuser --write=true %s` to synchronize", imageName)
} else {
wwlog.Info("uid/gid already synced")
}