[Bug 1926819] Re: Empty MOTD on up-to-date systems (includes fix)

Andrew Moore 1926819 at bugs.launchpad.net
Thu May 6 08:40:10 UTC 2021


I agree with Aaron and Daniel. I have a custom MOTD generation script
that uses the output of updater-notifier `head -qn 2 /var/lib/update-
notifier/updates-available`. Not having any text in that file if there
are no updates available breaks the layout of the MOTD output.

Regardless of my custom setup, having the blank lines in the default
MOTD generated by `/etc/motd.d/90-updates-available` does make me think
something is broken. It's nice to have the validation of "0 packages can
be updated", IMO.

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1926819

Title:
  Empty MOTD on up-to-date systems (includes fix)

Status in update-notifier package in Ubuntu:
  Confirmed

Bug description:
  Starting with update-notifier-common 3.192.30.7 (focal), my up-to-date
  systems are showing this MOTD on login:

  Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-72-generic x86_64)


  user at host:~$

  
  I've attached a patch that fixes this issue and adds more test cases.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1926819/+subscriptions



More information about the Ubuntu-sponsors mailing list