[Bug 634387] Re: creates motd.tail on postinst, which could mean duplicate entries in /etc/motd

Nathan Stratton Treadway ubuntu.lp at nathanst.com
Wed Jun 8 04:37:51 UTC 2011


*** This bug is a duplicate of bug 659738 ***
    https://bugs.launchpad.net/bugs/659738

On Wed, Jun 08, 2011 at 04:01:44 -0000, Nathan Stratton Treadway wrote:
> I don't have Oneiric installed anywhere, but looking
> in in the latest version of the sysvinit.postinst
> script (currently revision 14):

Actually, I was looking at revsion 114...

>   http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/oneiric/sysvinit/oneiric/view/head:/debian/initscripts/postinst
> , it doesn't appear that the copy-to-motd.tail logic
> (line 259) is any different that the troublesome code
> in the current Lucid version....

... but then again, I see that that revision is dated 2009-06-25, so I
guess it's not actually the source code for the version that is
included in Oneric, anyway.

So... I downloaded the tar.gz file for sysvinit-2.87dsf-4ubuntu25, and can
confirm that the initscripts.postinst no longer creates the motd.tail
file.


							Nathan

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

Title:
  creates motd.tail on postinst, which could mean duplicate entries in
  /etc/motd

Status in “sysvinit” package in Ubuntu:
  Confirmed
Status in “sysvinit” package in Debian:
  Unknown

Bug description:
  Binary package hint: sysvinit

  Did an upgrade on a server (8.04 -> 10.04), and after a reboot & login
  noticed that motd had duplicate headers:

  Linux fermaatti 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:24:04 UTC 2010 i686 GNU/Linux
  Ubuntu 10.04.1 LTS

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

  Ubuntu 10.04.1 LTS

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

  traced it down to the postinst files of base-files and iniscripts.
  First, base-files moved motd.tail as motd.tail.old, and later
  initscripts would create a new on by running 'sed 1d /etc/motd >
  /etc/motd.tail' (motd would by that time have been regenerated it
  seems). The result after a login is above.

  I can't think of a reason why initscripts creates motd.tail in the
  first place. In ubuntu the file should be empty, or nonexistant...




More information about the foundations-bugs mailing list