run-parts: /etc/update-motd/00-header exited with status 1

Bug #492387 reported by Matt Zimmerman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
base-files (Ubuntu)
Fix Released
Low
Dustin Kirkland 
Lucid
Fix Released
Low
Dustin Kirkland 

Bug Description

Binary package hint: update-motd

This was a fresh install from:

perseus:[~/iso] ubuntu-iso lucid-server-i386.iso
Ubuntu-Server 10.04 "Lucid Lynx" - Alpha i386 (20091204)

Upon first login (and on a second login that I tested), I saw this error:

run-parts: /etc/update-motd/00-header exited with status 1

00-header is a very simple script:

#!/bin/sh

# Header for /etc/motd
# These two lines were taken from /etc/init.d/bootlogs.sh
uname -snrvm
[ -f /etc/motd.tail ] && cat /etc/motd.tail

/etc/motd.tail does not exist, which is presumably the problem. Probably this script should end with "exit 0" and/or use an "if/then" construct rather than "&&".

ProblemType: Bug
Architecture: i386
Date: Fri Dec 4 12:07:43 2009
DistroRelease: Ubuntu 10.04
Package: update-motd (not installed)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-6.8-generic-pae
SourcePackage: update-motd
Tags: lucid
Uname: Linux 2.6.32-6-generic-pae i686

Related branches

Revision history for this message
Matt Zimmerman (mdz) wrote :
Thierry Carrez (ttx)
Changed in update-motd (Ubuntu Lucid):
importance: Undecided → Low
status: New → Triaged
Changed in update-motd (Ubuntu Lucid):
assignee: nobody → Dustin Kirkland (kirkland)
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Bug is actually in base-files, not update-motd. I'll fix it there. Thanks for the report.

affects: update-motd (Ubuntu Lucid) → base-files (Ubuntu Lucid)
Changed in base-files (Ubuntu Lucid):
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package base-files - 5.0.0ubuntu10

---------------
base-files (5.0.0ubuntu10) lucid; urgency=low

  * etc/00-header: handle non-zero exit if /etc/motd.tail does not exist,
    LP: #492387
 -- Dustin Kirkland <email address hidden> Mon, 07 Dec 2009 17:05:18 -0600

Changed in base-files (Ubuntu Lucid):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.