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>
This commit is contained in:
committed by
Christian Goll
parent
1ca16456fe
commit
609dc286ef
@@ -291,6 +291,21 @@ If the files ``/etc/passwd`` or ``/etc/group`` were updated, there
|
||||
will be an additional check to confirm if the users are in sync as
|
||||
described in `Syncuser`_ section.
|
||||
|
||||
Specifying a prompt
|
||||
-------------------
|
||||
|
||||
Warewulf sets a custom prompt during a ``wwctl image shell`` session. This
|
||||
prompt may be customized using the ``WW_PS1`` variable, which is used to
|
||||
construct the final ``PS1`` variable for the shell.
|
||||
|
||||
.. code-block::
|
||||
|
||||
# wwctl image shell rockylinux-9
|
||||
[warewulf:rockylinux-9] /#
|
||||
|
||||
# env WW_PS1="\u@\h:\w\$ " wwctl image shell rockylinux-9
|
||||
[warewulf:rockylinux-9] root@rocky:/$
|
||||
|
||||
Excluding Files from an Image
|
||||
-----------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user