]> git.ipfire.org Git - thirdparty/systemd.git/commit
Remove no longer needed login-options override. Fixes agetty autologin.
authorPontus Lundkvist <p@article.se>
Thu, 2 Jan 2025 23:20:59 +0000 (00:20 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 8 Jan 2025 21:30:04 +0000 (22:30 +0100)
commitd908b68c7d1fa6ad5a84bcf1fbf95d15af3d6093
treeed54b91dcde6a4d8e1cab9809fa1013d9ddcf3ed
parent268d39d18afc51e2f56aaaecb530915ba983e38e
Remove no longer needed login-options override. Fixes agetty autologin.

The need for -o was introduced in db6aeda to set the -p flag for login.
Setting -o overrides agettys built-in handling of arguments, so "-- \\u" was needed to mimic it.

This broke the autologin-feature, since the -f (noauth) flag is not passed to login [1].

But with 3d2157e, the -p flag is dropped, but the full change wasn't reverted,
leaving autologin still broken - But for no reason since agetty does the right thing.

Reference:
[1]: https://github.com/util-linux/util-linux/blob/4e14b57/term-utils/agetty.c#L529-L550
units/console-getty.service.in
units/container-getty@.service.in
units/getty@.service.in
units/serial-getty@.service.in