Added wwctl image build --syncuser

- #1321

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-02-11 08:59:29 -07:00
parent f2092b2854
commit b56fc19f9e
3 changed files with 16 additions and 2 deletions

View File

@@ -23,11 +23,13 @@ var (
}
BuildForce bool
BuildAll bool
SyncUser bool
)
func init() {
baseCmd.PersistentFlags().BoolVarP(&BuildAll, "all", "a", false, "(re)Build all images")
baseCmd.PersistentFlags().BoolVarP(&BuildForce, "force", "f", false, "Force rebuild, even if it isn't necessary")
baseCmd.PersistentFlags().BoolVar(&SyncUser, "syncuser", false, "Synchronize UIDs/GIDs from host to image")
}
// GetRootCommand returns the root cobra.Command for the application.