[Bug 1381455] [NEW] Redundant whitespace echoed by /usr/lib/update-notifier/update-motd-hwe-eol
Gertjan Zwartjes
mail at gertjanzwartjes.com
Wed Oct 15 10:25:42 UTC 2014
Public bug reported:
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.
** Affects: update-notifier (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
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/
+ * Documentation: https://help.ubuntu.com/
- System information as of Wed Oct 15 12:23:13 CEST 2014
+ 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%
+ 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/
+ 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.
+ 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.
--
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:
New
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