Commit Graph

8 Commits

Author SHA1 Message Date
Jonathon Anderson
7f317dff82 Add WW_HISTFILE to control shell history location during wwctl image shell
Co-authored-by: Christian Goll <cgoll@suse.com>

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-14 09:09:57 +01:00
Jonathon Anderson
609dc286ef Update PS1 during wwctl image shell to include working directory
Optionally, use `WW_PS1` to construct the prompt.

- Closes: #1245

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-14 09:09:57 +01:00
Jonathon Anderson
01b3c28874 Update syncuser to read passwd and group from sysconfdir
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-11 18:28:49 -07:00
Jonathon Anderson
f2092b2854 Remove syncuser warning messages in wwctl that assume its use
- #1321

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-11 18:28:49 -07:00
Jonathon Anderson
a0179f1432 Resolve issues identifies by staticcheck
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-02-06 22:11:17 -07:00
Jonathon Anderson
d56e83ab81 Remove a redundant "Building image" log message after image exec
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-30 16:58:55 -07:00
Jonathon Anderson
ca61494297 Change image provision directory to "images"
Previous name (before #1641) was "container." New name (from #1641) was "image"
but a plural name seems better.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-19 14:42:45 -07:00
Jonathon Anderson
45a690ca4e Rename "container" to "image"
- Updated `wwctl upgrade` to handle updates
- Maintained `.Container` and `.ContainerName` in tstruct
- Added `ContainerName()` methods to node and profile objects
- Added `--container`, `-C` aliases to wwctl commands (`<node|profile> <add|set>`)
- Added `wwctl container` alias
- Added support for `container_exit.sh` if `image_exit.sh` is not found

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-01-19 05:54:19 -07:00