autologin: prefer credentials to monkey patching unit

With systemd >= 247 and util-linux >= 2.40 we can just pass a credential to agetty, instead of monkey patching the unit file.

The latter actually fails with systemd v259 as the ExecStart= line has changed so the 'sed' no longer works.

Merge request reports

Loading