Looks like the code in sysvinit-2.87dsf/debian/initscripts.postinst that
tries to preserve an existing motd by turning it into a motd.tail only
makes sense if /etc/motd isn't already symlink to a generated file.
#
# Set up motd stuff, putting variable file in /var/run/
#
if [ ! -f /etc/motd.tail ]
then
if [ -f /etc/motd ]
then
sed 1d /etc/motd > /etc/motd.tail
[ -s /etc/motd.tail ] || rm -f /etc/motd.tail
fi
fi
should be
#
# Set up motd stuff, putting variable file in /var/run/
#
if [ ! -f /etc/motd.tail ]
then
if [ -f /etc/motd -a ! -L /etc/motd ]
then
sed 1d /etc/motd > /etc/motd.tail
[ -s /etc/motd.tail ] || rm -f /etc/motd.tail
fi
fi
The additional "-a ! -L /etc/motd" part would make the /etc/motd to
/etc/motd.tail only happen if /etc/motd was not a symlink.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/634387
Title:
creates motd.tail on postinst, which could mean duplicate entries in
/etc/motd
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs