From 256bb718ee452e90d31d44a5869fdf816e282b45 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Fri, 7 Jun 2019 17:19:44 +0200 Subject: [PATCH] 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. --- osbuild | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osbuild b/osbuild index 94bce340..317fd3df 100755 --- a/osbuild +++ b/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: