where we replace $LOGINREQUIRED depending on the choice of the builder, we might need to do 2 things, optionaly enable the login (as done using /bin/login) and upon termination or logout from /bin/sh, revert back to login without a kernel crash.
possibly fix the kernel crash/panic by a loop or init trick used in other distros.
possibly reboot and Ctr+Alt+Dell options can be dealt with aswell, but prio for exit problems
When either using a login required or nologin required shell is exited, the kernel tries to terminate the init program snippet from /init
where we replace $LOGINREQUIRED depending on the choice of the builder, we might need to do 2 things, optionaly enable the login (as done using /bin/login) and upon termination or logout from /bin/sh, revert back to login without a kernel crash. possibly fix the kernel crash/panic by a loop or init trick used in other distros.
possibly reboot and Ctr+Alt+Dell options can be dealt with aswell, but prio for exit problems