Bug 2156946

Summary: "agetty" does not handle the \l sequence in /etc/issue correctly
Product: Red Hat Enterprise Linux 9 Reporter: Laszlo Ersek <lersek>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED ERRATA QA Contact: Radka Brychtova <rskvaril>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.1CC: tucklesepk
Target Milestone: rcKeywords: Regression, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: util-linux-2.37.4-10.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 08:26:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Laszlo Ersek 2022-12-29 19:51:22 UTC
* Description of problem:

Per agetty(8), when /etc/issue contains the sequence \l, agetty is supposed to print:

>        l
>            Insert the name of the current tty line.

This used to work with RHEL7, does not work with RHEL-9.1

* Version-Release number of selected component (if applicable):
util-linux-core-2.37.4-9.el9.x86_64

* How reproducible:
100%

* Steps to Reproduce:
1. modify /etc/issue to something like:

\S \n \m \r, \U, \l

2. switch to a different character console (e.g. Ctrl+Alt+F5)

* Actual results:
The last piece of information on the greeting line is "-".

* Expected results:
It should be "tty5".

Comment 1 Karel Zak 2023-01-11 12:31:43 UTC
This is fixed in the upstream tree (and in Fedora) by commit
http://github.com/util-linux/util-linux/commit/47831cc02ac0d71c335caecef1753f4c8861277c

Comment 3 Karel Zak 2023-01-17 16:56:14 UTC
*** Bug 2109252 has been marked as a duplicate of this bug. ***

Comment 9 errata-xmlrpc 2023-05-09 08:26:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (util-linux bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2581