Add syncuser to wwctl container shell and switch to mtime

Signed-off-by: xu yang <xyang@ciq.com>
This commit is contained in:
xu yang
2024-08-06 08:15:59 +00:00
committed by Jonathon Anderson
parent 43b298f3aa
commit 0b3eace403
3 changed files with 11 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ var (
}
binds []string
nodeName string
syncUser bool
)
func init() {
@@ -33,6 +34,7 @@ Bind a local path which must exist into the container. If destination is not
set, uses the same path as source. "ro" binds read-only. "copy" temporarily
copies the file into the container.`)
baseCmd.PersistentFlags().StringVarP(&nodeName, "node", "n", "", "Create a read only view of the container for the given node")
baseCmd.PersistentFlags().BoolVar(&syncUser, "syncuser", false, "Synchronize UIDs/GIDs from host to container")
}
// GetRootCommand returns the root cobra.Command for the application.