/etc/motd.tail is silently removed on upgrade of initscripts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sysvinit (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
/etc/motd.tail is always removed on upgrade of initscripts. I encountered this problem on upgrading my Ubuntu server from 10.04 to 12.04.
This problem is caused by misuse of fgrep in initscripts.
...
if [ -n "$help_text" ] && fgrep -q "$help_text" /etc/motd.tail
then
rm -f /etc/motd.tail
...
/etc/update-
-F, --fixed-strings
Then this fgrep call always succeeds and /etc/motd.tail is removed.
I attached a patch to solve this issue.
The attachment "save-etc- motd-tail. patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.
[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]