initscripts.postinst always removes /etc/motd.tail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sysvinit (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I noticed this behavior when upgrading from 10.04.1 -> 10.04.3. The following code (inside initscripts.
<code>
if [ -n "$help_text" ] && fgrep -q "$help_text" /etc/motd.tail
then
rm -f /etc/motd.tail
# Rebuild the motd now that motd.tail has been fixed.
[..]
fi
</code>
The 'fgrep -q "$help_text" /etc/motd.tail' *always* matches if the file is non-null. This is bad in that it wipes out custom modifications to the motd.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: initscripts 2.87dsf-4ubuntu23
ProcVersionSign
Uname: Linux 2.6.38-
NonfreeKernelMo
Architecture: i386
Date: Wed Oct 19 14:18:15 2011
SourcePackage: sysvinit
UpgradeStatus: Upgraded to natty on 2011-04-28 (173 days ago)
Before posting this bug, I did find that bug #659738 is dealing with duplicate motd's caused by a mis-handling of /etc/motd.tail. It's possible that these bugs are related, but that's not up to me to make that call.