Bug 2084114 - util-linux-core doesn't include /bin/login which is required by /sbin/agetty
Summary: util-linux-core doesn't include /bin/login which is required by /sbin/agetty
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: 36
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-11 12:45 UTC by Daan De Meyer
Modified: 2023-04-25 18:51 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-04-25 18:51:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Daan De Meyer 2022-05-11 12:45:45 UTC
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.

Comment 1 Karel Zak 2022-05-18 10:03:48 UTC
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 :-)

Comment 2 Ben Cotton 2023-04-25 18:24:08 UTC
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.

Comment 3 Zbigniew Jędrzejewski-Szmek 2023-04-25 18:51:15 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.