First pass at a rework of the overlay subsystem in Warewulf

This commit is contained in:
Gregory Kurtzer
2021-12-29 16:11:25 -08:00
parent 02a5de3873
commit 00d8d42e9d
62 changed files with 405 additions and 628 deletions

View File

@@ -7,15 +7,12 @@ import (
var (
baseCmd = &cobra.Command{
DisableFlagsInUseLine: true,
Use: "chmod [OPTIONS] {runtime|system} OVERLAY_NAME FILENAME MODE",
Use: "chmod [OPTIONS] OVERLAY_NAME FILENAME MODE",
Short: "Change file permissions in an overlay",
Long: `Changes the permissions of a single FILENAME within an overlay specified by
overlay type (system or runtime) and its OVERLAY_NAME.
You can use any MODE format supported by the chmod command.`,
Example: "wwctl overlay chmod system default /etc/hostname.ww 0660",
RunE: CobraRunE,
Args: cobra.ExactArgs(4),
Long: "Changes the permissions of a single FILENAME within an overlay.\nYou can use any MODE format supported by the chmod command.",
Example: "wwctl overlay chmod default /etc/hostname.ww 0660",
RunE: CobraRunE,
Args: cobra.ExactArgs(3),
}
)