Control: reopen -1

On Sat, Mar 26, 2016 at 02:24:04PM +0000, Debian Bug Tracking System wrote:
> From: Steven Chamberlain <ste...@pyro.eu.org>
> To: 818876-d...@bugs.debian.org
> 
> Source-Version: 2.2.28-1

(My original report:)
> inxi -S
> System:    Host: umbar Kernel: 4.4.5-x32 x86_64 (64 bit) Desktop: Xfce 4.12.3
>            Distro: /etc/ corrupted, use -% to override
> 
> RTFSing, I see it tries to parse /etc/issue.  This is wrong as that file is 
> not
> meant to be machine-parsable, it's a welcome screen meant for humans, supposed
> to be replaced by the sysadmin (not that many people care about their console
> login screens these days...).  You want something like /etc/debian_version.

It's definitely not working in 2.2.28-1.

inxi happily takes whatever is in the login screen.  For example, a
widespread use is to start it with a screen clear:
  printf '\033[2J\033[HWelcome to JoeBob'"'"'s machine!\n' >/etc/issue
which makes "inxi -S" output the screen clear and text after is.

On the other hand, if it's longer than 80 characters, inxi will say "/etc/
corrupted".  For example, a typical university lab will have a long chunk of
legalese there, my machine has an ascii-art image -- pretty much anyone who
bothers to customize their login screen will make it longer than 80 chars.

inxi works correctly only for stock unmodified /etc/issue as shipped by
base-files.


-- 
A tit a day keeps the vet away.

Reply via email to