Bug#802211: Drop-In snippet

Marga Manterola marga at google.com
Thu Jul 6 15:15:27 BST 2017


For anybody that gets hit by this bug, this is the drop-in snippet that I
created so that it works for password-less root accounts:

$ cat /etc/systemd/system/emergency.service.d/sulogin.conf
[Service]
ExecStart=
ExecStart=-/bin/sh -c "/sbin/sulogin --force; /bin/systemctl
--job-mode=fail --no-block default"

In my case, I needed to override emergency.service, as this is the service
that gets executed automatically on failure of several other things.  If
you also need to override rescue.service, then it would be the same thing,
just a different unit name:

$ cat /etc/systemd/system/rescue.service.d/sulogin.conf
[Service]
ExecStart=
ExecStart=-/bin/sh -c "/sbin/sulogin --force; /bin/systemctl
--job-mode=fail --no-block default"
-- 
Cheers,
Marga
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20170706/b1f39ebc/attachment.html>


More information about the Pkg-systemd-maintainers mailing list