From cf4475cfccbc84425fee513ec25c96c26a7bf0a0 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 23 Jul 2024 10:23:05 -0400 Subject: [PATCH] Escape the '\W' to avoid stepping on python processing --- imgutil/imgutil | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgutil/imgutil b/imgutil/imgutil index 1c6d3cc0..4ef06776 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -947,7 +947,7 @@ def fancy_chroot(args, installroot): os.chroot(installroot) os.chdir('/') _mount('/', '/', flags=MS_BIND) # Make / manifest as a mounted filesystem in exec - os.environ['PS1'] = '[\x1b[1m\x1b[4mIMGUTIL EXEC {0}\x1b[0m \W]$ '.format(imgname) + os.environ['PS1'] = '[\x1b[1m\x1b[4mIMGUTIL EXEC {0}\x1b[0m \\W]$ '.format(imgname) os.environ['CONFLUENT_IMGUTIL_MODE'] = 'exec' if oshandler: oshandler.set_source('/run/confluentdistro')