BTS

Issue837

Title grml-etc: /etc/motd does not exist on resulting ISO
Priority bug Status resolved
Superseder Nosy List ch, mika
Assigned To Topics

Created on 2010-03-29.10:27:45 by mika, last changed 2011-05-09.20:13:50 by mika.

Files
File name Uploaded Type Edit Remove
0001-fcopy-motd-instead-of-relying-on-grml-etc-plus-weird.patch ch, 2010-11-23.11:57:45 text/plain
0001-work-around-newer-initscripts-etc-motd-postinst-logi.patch ch, 2010-10-18.12:11:03 text/x-patch
Messages
msg3488 (view) Author: mika Date: 2010-11-25.09:39:14
Fixed in git, thanks Christian.
msg3481 (view) Author: ch Date: 2010-11-23.11:57:45
New patch, moves motd to grml-live. Simplifies life.
(Removal of /etc/motd from grml-etc needs to be done, too, but not posting a patch 
for this...)
msg3386 (view) Author: ch Date: 2010-10-18.12:11:03
I've tried implementing a workaround, and it yields a working /etc/motd, but 
/etc/motd.tail is corrupted along the way. Don't understand why... Attaching 
patch for now.
msg3374 (view) Author: ch Date: 2010-10-11.11:54:05
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.
msg3124 (view) Author: mika Date: 2010-03-29.10:27:44
/etc/motd points to non-existing file /var/run/motd, mainly a cosmetic issue 
but should be investigated anyway.
History
Date User Action Args
2011-05-09 20:13:50mikasetstatus: fixed-in-git -> resolved
nosy: mika, ch
2010-11-25 09:39:14mikasetstatus: chatting -> fixed-in-git
nosy: mika, ch
messages: + msg3488
2010-11-23 11:57:48chsetfiles: + 0001-fcopy-motd-instead-of-relying-on-grml-etc-plus-weird.patch
nosy: mika, ch
messages: + msg3481
2010-10-18 12:11:03chsetfiles: + 0001-work-around-newer-initscripts-etc-motd-postinst-logi.patch
nosy: + ch
messages: + msg3386
2010-10-11 11:54:06chsetstatus: unread -> chatting
messages: + msg3374
2010-03-29 10:27:45mikacreate