Bug 1168405

Summary: adjust issue handling to new agetty
Product: [openSUSE] openSUSE Tumbleweed Reporter: Ludwig Nussel <lnussel>
Component: BasesystemAssignee: Thorsten Kukuk <kukuk>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: alynx.zhou, mrmazda, pgajdos
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on: 1194322    
Bug Blocks:    

Description Ludwig Nussel 2020-04-02 07:50:57 UTC
agetty from util-linux 2.35 (not yet packaged) supports reading issue files from /run and /usr in the following way:

if /etc/issue exists:
   read /etc/issue and /etc/issue.d
else if /run/issue exists or /run/issue.d has any files
   read those
else
   read /usr/lib/issue
   read /usr/lib/issue.d

Moreover, the \4 and \6 escape codes use the first configured interface to print the IP address.

That means for the most useful default case we don't need to run the extra code of issue generator to enumerate network interfaces and merge issue files anymore. We can rely on agetty built-in features only. Those who need the extra features to print ssh keys or custom computed stuff could still install issue-generator. So I propose the following change:

- don't hard require issue-generator in openSUSE-release
- don't ship /etc/issue
- ship /usr/lib/issue.d/10-openSUSE.issue with the following content:
  Welcome to \S{PRETTY_NAME} \S{VERSION_ID} - Kernel \r (\l).
  \4 \6
Comment 1 Felix Miata 2020-12-17 05:23:27 UTC
Priority here apparently needs escalation:

I installed 20201111 fresh on Intel 32bit. Upgrading several times has produced no change. Current is 20201215. No content from *issue* is being displayed on the vttys. All that appears on the empty screens is a 9 character login prompt and a trailing space. /etc/issue is absent. /etc/issue.net is present. /usr/lib/issue.d/ appears to contain in 10-opensuse.conf the content /etc/issue used to contain. Remote login prompt continues to behave as expected.
Comment 2 Felix Miata 2022-01-05 01:58:36 UTC
Installing issue-generator solves the comment #1 issue.
Comment 3 Petr Gajdos 2022-12-16 10:50:20 UTC
Stanislav is on long leave. I think this bug has wrong assignee anyway. If that is not true, please forgive me, and in that case hints are welcome.
Comment 4 Thorsten Kukuk 2022-12-19 15:10:38 UTC
I don't see any sense or benefit in such a change.

If you have more than one interface (even all of my notebooks have this), this single \4 or \6 without interface is very confusing (but ok, most likely you don't need it here). Servers, where you need it, have most often more than one network interface.
Comment 5 Ludwig Nussel 2022-12-20 14:12:42 UTC
Align us with upstream, align upstream with us ...