fix(vm): disable zsh equals-expansion for check markers

This commit is contained in:
Phoebus 2026-09-27 23:40:08 -07:00
parent 497cba6b81
commit bea96f543d

View file

@ -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); "