osbuild: print the nsenter command needed to get a shell in the container
This is useful for debugging, and would be as a very lightweight ssh session, but one that only insepcts the environment without hooking into anything.
This commit is contained in:
parent
61f83b3f46
commit
256bb718ee
1 changed files with 2 additions and 0 deletions
2
osbuild
2
osbuild
|
|
@ -69,6 +69,8 @@ def main(pipeline_path, from_archive, save):
|
|||
|
||||
print()
|
||||
print(f"{RESET}{BOLD}{i}. {name}{RESET} {options_str}")
|
||||
print("Inspect with:")
|
||||
print(f"\t# nsenter -a --wd=/root -t `machinectl show {os.path.basename(root)} -p Leader --value`")
|
||||
print()
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue