← Back to team overview

linaro-release team mailing list archive

[Bug 659738] Re: Duplicate welcome message in motd (caused by postinst script creating motd.tail file)

 

For the Lucid SRU:

Impact of bug: upon ssh'ing in or otherwise logging into a machine and
being presented with the motd banner, you will see a double banner.  One
comes from /etc/motd symlinked to /var/run/motd, which is normal.  The
other comes from a bogus copy put into /etc/motd.tail.

Package uploaded to lucid-proposed fixes this in two ways.  First, it
does not copy /etc/motd into /etc/motd.tail if the former is a symlink.
Second, it backports a stanza from the oneiric
debian/initscripts.postinst file to remove the bogus /etc/motd.tail when
it recognizes it contains the double banner.

For the patch, see the diff in comment #28 above.

TEST CASE:
* If you already have a Lucid machine that exhibits the double banner, install 2.87dsf-4ubuntu17.4 from lucid-proposed and you should see /etc/motd.tail being removed.
* If you do not see the double banner, consider yourself lucky!  But to reproduce it just execute this as root:
$ sed 1d /etc/motd > /etc/motd.tail
then install the new version and you should see /etc/motd.tail removed
* To verify that /etc/motd.tail does not return after it's been removed either:
** before you install 2.87dsf-4ubuntu17.4, manually rm -f /etc/motd.tail, then upgrade, and motd.tail will not return
** if you've already installed the new version, just `apt-get install --reinstall` and see that motd.tail does not return

Regression potential: 
* Someone with a valid /etc/motd.tail could get it accidentally removed.

-- 
You received this bug notification because you are a member of Linaro
Release Team, which is a direct subscriber.
https://bugs.launchpad.net/bugs/659738

Title:
  Duplicate welcome message in motd (caused by postinst script creating
  motd.tail file)

Status in “sysvinit” package in Ubuntu:
  Fix Released
Status in “sysvinit” source package in Lucid:
  In Progress
Status in “sysvinit” source package in Maverick:
  Fix Released
Status in “sysvinit” source package in Natty:
  Fix Released
Status in “sysvinit” package in Debian:
  Unknown

Bug description:
  Binary package hint: landscape-client

  e.g.:
  Linux ubuntu 2.6.35-22-generic #34-Ubuntu SMP Sun Oct 10 09:26:05 UTC 2010 x86_64 GNU/Linux
  Ubuntu 10.10

  Welcome to Ubuntu!
   * Documentation:  https://help.ubuntu.com/

    System information as of Wed Oct 13 09:57:20 CEST 2010

    System load:    0.26               Processes:           172
    Usage of /home: 82.7% of 50.60GB   Users logged in:     1
    Memory usage:   42%                IP address for eth0: 192.168.1.1
    Swap usage:     0%

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

  Ubuntu 10.04.1 LTS

  Welcome to Ubuntu!
   * Documentation:  https://help.ubuntu.com/

    System information as of Mon Oct 11 10:13:53 CEST 2010

    System load:    0.85               Processes:           246
    Usage of /home: 82.5% of 50.60GB   Users logged in:     1
    Memory usage:   37%                IP address for eth0: 192.168.1.1
    Swap usage:     0%

    => There are 4 zombie processes.

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

  *** System restart required ***