ebf0cad69d
The restored switch_root chdir set init's CWD to /scheme/initfs on the live image. login later restricts its namespace to DEFAULT_SCHEMES (no 'initfs' scheme) via mkns/setns; the inherited /scheme/initfs CWD fd then becomes unresolvable. Because relibc resolves paths through the CWD fd (AT_REDOX_CWD_FD), every subsequent file op in login hangs -- notably Command::spawn() loading the login shell binary never returns, so the shell never starts. Leaving the CWD inherited (as before the chdir was added) keeps spawn working across the login namespace switch; getcwd() in /usr binaries works without the chdir. Reverts the CWD half of 521c6ffe; the init-diag cleanup from that commit is retained.