Am 04.05.2015 um 13:15 schrieb Bernd Zeimetz:
> Even worse, pressing enter shows the prompt from the former shell and
> I'm able to get 'bash ... command not found errors'

This looks like a bug in /sbin/sulogin, which does not properly cleanup
it's children, when being killed.
Our /sbin/sulogin implementation comes from sysvinit-utils while
apparently most other distros use /sbin/sulogin from util-linux nowadays.

I think we can workaround that by letting systemd do the process cleanup
and using KillMode=mixed (currently it uses KillMode=process, which
means it leaves the cleanup to the main process).

Bernd, please copy /lib/systemd/system/emergency.service to
/etc/systemd/system/emergency.service and change
KillMode=process to KillMode=mixed.

When you are in the emergency shell, restarting emergency.service should
now also kill the running bash shell.

Before you try to "systemctl restart emergency.service", you can start a
debug shell on tty9 via "systemctl start debug-shell.service" where you
can switch to, if something goes wrong.

Please confirm, if this fixes your issue or not.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to