Clarify functionality of syncuser commands and overlay in documentation
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
@@ -9,10 +9,15 @@ var (
|
||||
baseCmd = &cobra.Command{
|
||||
DisableFlagsInUseLine: true,
|
||||
Use: "syncuser [OPTIONS] IMAGE",
|
||||
Short: "Synchronizes user in image",
|
||||
Long: `Synchronize the uids and gids from the host to the image.
|
||||
Users/groups which are only present in the image will be preserved if no
|
||||
uid/gid collision is detected. File ownerships are also changed.`,
|
||||
Short: "Synchronize UIDs/GIDs from the server to an OS image",
|
||||
Long: `Synchronize UIDs and GIDs from the server into an OS image, updating
|
||||
/etc/passwd, /etc/group, and file ownerships within the image. Users and
|
||||
groups that exist only in the image are preserved unless a UID/GID collision
|
||||
is detected.
|
||||
|
||||
This command affects the image itself (a one-time operation at build/import
|
||||
time). To also make host users available on provisioned nodes at runtime, add
|
||||
the "syncuser" overlay to the node or profile.`,
|
||||
RunE: CobraRunE,
|
||||
ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
|
||||
if len(args) != 0 {
|
||||
@@ -29,8 +34,8 @@ uid/gid collision is detected. File ownerships are also changed.`,
|
||||
)
|
||||
|
||||
func init() {
|
||||
baseCmd.PersistentFlags().BoolVar(&write, "write", true, "Synchronize uis/gids and write files in image")
|
||||
baseCmd.PersistentFlags().BoolVar(&build, "build", false, "Build image after syncuser is completed")
|
||||
baseCmd.PersistentFlags().BoolVar(&write, "write", true, "Synchronize UIDs/GIDs and write files in OS image")
|
||||
baseCmd.PersistentFlags().BoolVar(&build, "build", false, "Build OS image after syncuser is completed")
|
||||
}
|
||||
|
||||
// GetRootCommand returns the root cobra.Command for the application.
|
||||
|
||||
Reference in New Issue
Block a user