BTS

Message3374

Author ch
Recipients mika
Date 2010-10-11.11:54:05
Content
initscript.postinst corrupts the grml-etc supplied /etc/motd.
Relevant code:
  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

This clearly does not check if initscript even owns /etc/motd. Sigh.
/var/run/motd is created later on in initscripts.postinst, but I suspect 
/var/run is not preserved ;-) (And should not be.)

The only option I see for preserving /etc/motd is to ship an /etc/motd.tail in 
grml-etc, possibly just being an exact copy of the current /etc/motd.
History
Date User Action Args
2010-10-11 11:54:06chsetrecipients: + mika
2010-10-11 11:54:06chsetmessageid: <1286798046.59.0.802028792311.issue837@bts.grml.org>
2010-10-11 11:54:06chlinkissue837 messages
2010-10-11 11:54:05chcreate