Description of problem: On new Fedora 36 images that only include util-linux-core, login fails because /sbin/agetty tries to execute /bin/login which is not included in util-linux-core. Version-Release number of selected component (if applicable): Steps to Reproduce: ``` sudo dnf install mkosi sudo mkosi -d fedora -r 36 --autologin boot ``` Actual results: login fails Expected results: login succeeds Additional info: Relevant journald logs: ``` May 11 13:47:27 image systemd[36]: console-getty.service: Executing: /sbin/agetty -o "-p -- \\u" --noclear --autologin root --keep-baud console 115200,38400,9600 xterm-256color May 11 13:47:27 image agetty[36]: console: can't exec /bin/login: No such file or directory ``` Installing util-linux explicitly fixes the issue.
Maybe agetty in the package is a mistake, or we need some simplified login(1) binary for the core (for something like "agetty --login-program /bin/noauthlogin --autologin root") The reason why the core subpackage does not contain login(1) is a dependence on PAM, the regular login(1) will trigger a lot of stuff to install. The reason why the core has been introduced was primary to avoid PAM :-)
This message is a reminder that Fedora Linux 36 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '36'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 36 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
I think we can close this as "not a bug". We talked this over, and login is a fairly big dependency because of PAM and whatnot. Images that want to allow users to log in will just need to specify the appropriate dependencies in addition to util-linux-core.