Commit Graph

9 Commits

Author SHA1 Message Date
Jonathon Anderson
22910958b5 Replace all instances of wwlog.Printf
wwlog provides named loggers for each level, which requires
less code and is clearer than wwlog.Printf. The code has
included a mix of both, but this commit consolidates existing
code on the per-level functions.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-11 08:00:23 -06:00
Jonathon Anderson
e2b5350834 Fix handling of uid and gid arguments during chown
It appears that the intended behavior of overlay chown was changed
in 00d8d42e9, but the argument handling was not updated to reflect
the removal of overlayKind. This led to a crash when only the
uid was specified, and a processing of the gid as the uid
otherwise.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-11 00:38:05 -06:00
Jonathon Anderson
4bda8cd29e Don't change unspecified gid to 0 during chown
Specifying 0 for gid as a default during chown causes the
gid to be changed to 0 when left unspecified. Changing the
default value to -1 causes the gid to be left unmodified
when unspecified, which is a less surprising behavior.

Signed-off-by: Jonathon Anderson <janderson@ciq.co>
2022-09-10 14:51:56 -06:00
Gregory Kurtzer
00d8d42e9d First pass at a rework of the overlay subsystem in Warewulf 2021-12-29 16:11:25 -08:00
Gregory Kurtzer
499582e211 Don't rebuild overlays on overlay commands automatically 2021-09-29 22:06:46 -07:00
Gregory Kurtzer
5d425a897f Check length of args properly before using array slice. 2021-09-13 22:29:41 -07:00
Gregory Kurtzer
3137f477bf UI updates to include "overlay kind" 2021-09-13 13:28:44 -07:00
Gregory Kurtzer
f9b9c3a8c1 Linting fixes 2021-09-08 20:37:58 -07:00
Gregory Kurtzer
349981f5bb Added wwctl overlay chown ... command group 2021-09-06 17:38:04 -07:00