There is a special handling when a script under /work fails with 127, which is
also reached when mkosi is called within mkosi-initrd.
```
‣ Running finalize script /etc/mkosi-initrd/mkosi.finalize…
/work/finalize: line 5: strip: command not found
‣ /work/finalize failed with non-zero exit code 127
‣ (Maybe a program was not found or the script interpreter (e.g. bash) is not installed?)
‣ mkosi not found.
```
f'"{shlex.join([*sandbox, *cmdline] if ARG_DEBUG.get() else cmdline)}"'
f" was killed by {signal.Signals(-returncode).name} signal."
)
- elif returncode == 127:
+ elif returncode == 127 and cmdline[0] != "mkosi":
# Anything invoked beneath /work is a script that we mount into place (so we know it exists). If one
# of these scripts fails with exit code 127, it's either because the script interpreter was not
# installed or because one of the commands in the script failed with exit code 127.