[issue837] grml-etc: /etc/motd does not exist on resulting ISO

Christian Hofstaedtler bts at bts.grml.org
Mon Oct 11 13:54:06 CEST 2010


Christian Hofstaedtler <ch+grmlbts at zeha.at> added the comment:

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.

----------
messages: 3124, 3374
nosy: mika
priority: bug
status: chatting
title: grml-etc: /etc/motd does not exist on resulting ISO

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue837>
_____________________________________


More information about the Bugs-changes mailing list