Skip to content

Commit

Permalink
show container name upon entering
Browse files Browse the repository at this point in the history
Signed-off-by: Shahriyar Jalayeri <shahriyar@zededa.com>
  • Loading branch information
shjala authored and eriknordmark committed Jun 25, 2024
1 parent 7b35a22 commit 5553d00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pkg/dom0-ztools/rootfs/bin/eve
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,9 @@ case "$1" in
# Start tio
tio "$PTY"
;;
enter) # shellcheck disable=SC2086
${CTR_CMD} t exec -t --exec-id $(basename $(mktemp)) ${2:-pillar} ${3:-sh -l}
enter) PROMPT="[${2:-pillar}] \u@\h:\w\$ "
# shellcheck disable=SC2086
${CTR_CMD} t exec -t --exec-id $(basename $(mktemp)) ${2:-pillar} ${3:-/bin/sh -lc "export PS1='$PROMPT'; exec /bin/sh"}
;;
enter-user-app) [ -z "$2" ] && help
# shellcheck disable=SC2046,SC2086
Expand Down
1 change: 0 additions & 1 deletion pkg/pillar/rootfs/etc/profile.d/ns.sh

This file was deleted.

0 comments on commit 5553d00

Please sign in to comment.