[Bug 1381455] Re: Redundant whitespace echoed by /usr/lib/update-notifier/update-motd-hwe-eol

Brian Murray brian at ubuntu.com
Thu Aug 11 18:44:57 UTC 2016


** Changed in: update-notifier (Ubuntu)
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-notifier in Ubuntu.
https://bugs.launchpad.net/bugs/1381455

Title:
  Redundant whitespace echoed by /usr/lib/update-notifier/update-motd-
  hwe-eol

Status in update-notifier package in Ubuntu:
  Fix Released

Bug description:
  The latest update-notifier-common update 0.119ubuntu8.7, adds support
  HWE end-of-life reporting through motd. However if there are no
  updates to report, the /usr/lib/update-notifier/update-motd-hwe-eol
  script will always output two empty lines. This is kind of ugly in the
  full motd text when you log in to a server.

  For instance:

  Welcome to Ubuntu 12.04.5 LTS (GNU/Linux 3.2.0-69-generic x86_64)

   * Documentation:  https://help.ubuntu.com/

    System information as of Wed Oct 15 12:23:13 CEST 2014

    System load:  0.07                Processes:           120
    Usage of /:   78.4% of 453.51GB   Users logged in:     1
    Memory usage: 27%                 IP address for eth0: 192.168.178.22
    Swap usage:   0%

    Graph this data and manage this system at:
      https://landscape.canonical.com/

  0 packages can be updated.
  0 updates are security updates.

  New release '14.04.1 LTS' available.
  Run 'do-release-upgrade' to upgrade to it.

  <HERE TWO ADDITIONAL WHITELINES ARE INSERTED>

  
  *** System restart required ***
  Last login: Wed Oct 15 12:22:59 2014 from <redacted>

  The offending echo's are at lines 47 and 48 in update-motd-hwe-eol.
  Commenting these out solves the problem. Note that when there are HWE
  EOL updates to report the /usr/bin/hwe-support-status script (which is
  called by update-motd-hwe-eol) will make sure there are whiteline
  prepended and appended when there's stuff to report. At least, from
  what I found by looking at that script.

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



More information about the foundations-bugs mailing list