[opensuse-support] what mechanism makes the preface to a vtty login prompt exist?
Google can't seem to point me to an answer. I did a fresh install of TW a month ago, 20201111 IIRC. On it the vtty prompts are naked, nothing but the prompt on the top line. /etc/issue.net exists, but /etc/issue does not, even after upgrade to 20201214. What else is missing? -- Evolution as taught in public schools, like religion, is based on faith, not on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/
On 16/12/2020 06.44, Felix Miata wrote:
Google can't seem to point me to an answer. I did a fresh install of TW a month ago, 20201111 IIRC. On it the vtty prompts are naked, nothing but the prompt on the top line. /etc/issue.net exists, but /etc/issue does not, even after upgrade to 20201214. What else is missing?
The prompt comes from this variables (run "set"): PS1='\[$(ppwd)\]\u@\h:\w> ' PS2='> ' PS4='+ ' The welcome message comes from "/etc/motd". cer@Telcontar:~> cat /etc/motd Have a lot of fun... cer@Telcontar:~> There is also: cer@Telcontar:~> cat /etc/issue Welcome to \S - Kernel \r (\l). cer@Telcontar:~> And possibly "/etc/issue.net" - for network logins. And I have just re-discovered /etc/issue.d/ cer@Telcontar:~> rpm -qf /etc/issue openSUSE-release-15.1-lp151.304.1.x86_64 cer@Telcontar:~> -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
Carlos E. R. composed on 2020-12-16 11:15 (UTC+0100):
Felix Miata wrote:
Google can't seem to point me to an answer. I did a fresh install of TW a month ago, 20201111 IIRC. On it the vtty prompts are naked, nothing but the prompt on the top line. /etc/issue.net exists, but /etc/issue does not, even after upgrade to 20201214. What else is missing?
The prompt comes from this variables (run "set"):
The only significance of the prompt to the question is its position WRT what's missing.
The welcome message comes from "/etc/motd".
That's even less relevant.
There is also:
cer@Telcontar:~> cat /etc/issue Welcome to \S - Kernel \r (\l).
That's the general idea. As I wrote, it's missing...
cer@Telcontar:~>
And possibly "/etc/issue.net" - for network logins. And I have just re-discovered /etc/issue.d/
...yet /etc/issue.net is not missing.
cer@Telcontar:~> rpm -qf /etc/issue openSUSE-release-15.1-lp151.304.1.x86_64 cer@Telcontar:~>
Methinks you missed the relevance of TW. Some things have gotten changed in TW in the moons since 15.1 release. In fact, I do get the resulting kernel version announcement prior to the prompt on a remote login: Welcome to openSUSE Tumbleweed 20201214 - Kernel 5.9.14-1-default (0). s2846 login: I expect to see the same thing on the vttys, but it, like /etc/issue, is just not there: 151user # rpm -q --filesbypkg openSUSE-release | grep issue openSUSE-release /etc/issue twuser # rpm -q --filesbypkg openSUSE-release | grep issue openSUSE-release /etc/issue.net openSUSE-release /usr/lib/issue.d openSUSE-release /usr/lib/issue.d/10-openSUSE.conf openSUSE-release /usr/lib/issue.d/90-openSUSE.conf twuser# ls -Gg /usr/lib/issue.d/ total 2 -rw-r--r-- 1 59 Dec 14 14:10 10-openSUSE.conf -rw-r--r-- 1 2 Dec 14 14:10 90-openSUSE.conf So, TW did change this. But, knowing this doesn't answer $SUBJECT, which is what's the *mechanism* (that uses /etc/issue (on Leap), or /usr/lib/issue.d/10-openSUSE.conf (on TW)) and why isn't it working? I guess it must be bug report time. -- Evolution as taught in public schools, like religion, is based on faith, not on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/
On 16/12/2020 19.54, Felix Miata wrote:
Carlos E. R. composed on 2020-12-16 11:15 (UTC+0100):
Felix Miata wrote:
Google can't seem to point me to an answer. I did a fresh install of TW a month ago, 20201111 IIRC. On it the vtty prompts are naked, nothing but the prompt on the top line. /etc/issue.net exists, but /etc/issue does not, even after upgrade to 20201214. What else is missing?
The prompt comes from this variables (run "set"):
The only significance of the prompt to the question is its position WRT what's missing.
The welcome message comes from "/etc/motd".
That's even less relevant.
There is also:
cer@Telcontar:~> cat /etc/issue Welcome to \S - Kernel \r (\l).
That's the general idea. As I wrote, it's missing...
cer@Telcontar:~>
And possibly "/etc/issue.net" - for network logins. And I have just re-discovered /etc/issue.d/
...yet /etc/issue.net is not missing.
cer@Telcontar:~> rpm -qf /etc/issue openSUSE-release-15.1-lp151.304.1.x86_64 cer@Telcontar:~>
Methinks you missed the relevance of TW. Some things have gotten changed in TW in the moons since 15.1 release. In fact, I do get the resulting kernel version announcement prior to the prompt on a remote login:
I thought you were asking how it was done, not only why it failed :-)
Welcome to openSUSE Tumbleweed 20201214 - Kernel 5.9.14-1-default (0). s2846 login:
I expect to see the same thing on the vttys, but it, like /etc/issue, is just not there:
Well, it is not there because the file is missing. That's the cause.
151user # rpm -q --filesbypkg openSUSE-release | grep issue openSUSE-release /etc/issue
twuser # rpm -q --filesbypkg openSUSE-release | grep issue openSUSE-release /etc/issue.net openSUSE-release /usr/lib/issue.d openSUSE-release /usr/lib/issue.d/10-openSUSE.conf openSUSE-release /usr/lib/issue.d/90-openSUSE.conf twuser# ls -Gg /usr/lib/issue.d/ total 2 -rw-r--r-- 1 59 Dec 14 14:10 10-openSUSE.conf -rw-r--r-- 1 2 Dec 14 14:10 90-openSUSE.conf
So, TW did change this. But, knowing this doesn't answer $SUBJECT, which is
what's the *mechanism* (that uses /etc/issue (on Leap), or /usr/lib/issue.d/10-openSUSE.conf (on TW))
and
why isn't it working?
I guess it must be bug report time.
Yep. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
* Felix Miata <mrmazda@earthlink.net> [12-16-20 13:56]:
Carlos E. R. composed on 2020-12-16 11:15 (UTC+0100):
Felix Miata wrote:
Google can't seem to point me to an answer. I did a fresh install of TW a month ago, 20201111 IIRC. On it the vtty prompts are naked, nothing but the prompt on the top line. /etc/issue.net exists, but /etc/issue does not, even after upgrade to 20201214. What else is missing?
The prompt comes from this variables (run "set"):
The only significance of the prompt to the question is its position WRT what's missing.
The welcome message comes from "/etc/motd".
That's even less relevant.
There is also:
cer@Telcontar:~> cat /etc/issue Welcome to \S - Kernel \r (\l).
That's the general idea. As I wrote, it's missing...
cer@Telcontar:~>
And possibly "/etc/issue.net" - for network logins. And I have just re-discovered /etc/issue.d/
...yet /etc/issue.net is not missing.
cer@Telcontar:~> rpm -qf /etc/issue openSUSE-release-15.1-lp151.304.1.x86_64 cer@Telcontar:~>
Methinks you missed the relevance of TW. Some things have gotten changed in TW in the moons since 15.1 release. In fact, I do get the resulting kernel version announcement prior to the prompt on a remote login:
Welcome to openSUSE Tumbleweed 20201214 - Kernel 5.9.14-1-default (0). s2846 login:
I get it in all my vtty's. but do not have a clue where to look for what is different between your install and mine (on 4 boxes). -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode
Felix Miata composed on 2020-12-16 13:54 (UTC-0500): ...
I guess it must be bug report time.
https://bugzilla.opensuse.org/show_bug.cgi?id=1168405 adjust issue handling to new agetty from April 2 seems possibly to cover this, so for now I commented there instead of filing a new report. -- Evolution as taught in public schools, like religion, is based on faith, not on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/
participants (3)
-
Carlos E. R.
-
Felix Miata
-
Patrick Shanahan