From bea96f543d6d8bedd29db846c6f774741f37c3a8 Mon Sep 17 00:00:00 2001 From: Phoebus Date: Sun, 27 Sep 2026 23:40:08 -0700 Subject: [PATCH] fix(vm): disable zsh equals-expansion for check markers --- installer/tests/vm/serial-driver.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/installer/tests/vm/serial-driver.py b/installer/tests/vm/serial-driver.py index 876c291..b08d252 100644 --- a/installer/tests/vm/serial-driver.py +++ b/installer/tests/vm/serial-driver.py @@ -357,6 +357,11 @@ def do_boot(results, paths, disks): # the echo and close the console before the checks ran. checks = os.environ.get( "BOOT_CHECKS", + # `setopt NO_EQUALS` first: the installed default shell is zsh, where + # a leading `=` triggers command-path expansion and the `===MARKER===` + # convention would abort the whole line as "not found". The redirect + # swallows the error on shells without `setopt` (bash live envs). + "setopt NO_EQUALS 2>/dev/null; " "echo ===CHECKS-$(printf START)===; " "echo COMM_CHECK:$(cat /proc/1/comm 2>&1); " "echo SYSTEMD_STATUS:$(systemctl is-system-running 2>&1); "