fix(vm): disable zsh equals-expansion for check markers
This commit is contained in:
parent
497cba6b81
commit
bea96f543d
1 changed files with 5 additions and 0 deletions
|
|
@ -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); "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue