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

Christian Hofstaedtler bts at bts.grml.org
Tue Nov 23 12:57:48 CET 2010


Christian Hofstaedtler <ch at grml.org> added the comment:

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...)

----------
files: 0001-fcopy-motd-instead-of-relying-on-grml-etc-plus-weird.patch, 0001-work-around-newer-initscripts-etc-motd-postinst-logi.patch
messages: 3124, 3374, 3386, 3481
nosy: ch, 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>
_____________________________________
-------------- next part --------------
>From 85b6c7f3413c570f0f1043dccf77280ae6f44f50 Mon Sep 17 00:00:00 2001
From: Christian Hofstaedtler <ch at grml.org>
Date: Tue, 23 Nov 2010 12:51:59 +0100
Subject: [PATCH] fcopy motd instead of relying on grml-etc plus weirdness

---
 etc/grml/fai/config/files/etc/motd/GRMLBASE  |    2 ++
 etc/grml/fai/config/scripts/GRMLBASE/31-motd |    6 ++----
 2 files changed, 4 insertions(+), 4 deletions(-)
 create mode 100644 etc/grml/fai/config/files/etc/motd/GRMLBASE

diff --git a/etc/grml/fai/config/files/etc/motd/GRMLBASE b/etc/grml/fai/config/files/etc/motd/GRMLBASE
new file mode 100644
index 0000000..1fc6f73
--- /dev/null
+++ b/etc/grml/fai/config/files/etc/motd/GRMLBASE
@@ -0,0 +1,2 @@
+grml - Linux for geeks
+
diff --git a/etc/grml/fai/config/scripts/GRMLBASE/31-motd b/etc/grml/fai/config/scripts/GRMLBASE/31-motd
index 3093e64..a83dfe9 100755
--- a/etc/grml/fai/config/scripts/GRMLBASE/31-motd
+++ b/etc/grml/fai/config/scripts/GRMLBASE/31-motd
@@ -1,6 +1,6 @@
 #!/bin/bash
 # Filename:      /etc/grml/fai/config/scripts/GRMLBASE/31-motd
-# Purpose:       make sure the motd setup is correct
+# Purpose:       replace motd
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika at grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
@@ -9,9 +9,7 @@
 set -u
 set -e
 
-if [ -f $target/etc/motd.dpkg-new ] ; then
-   $ROOTCMD mv /etc/motd.dpkg-new /var/run/motd
-fi
+fcopy /etc/motd
 
 ## END OF FILE #################################################################
 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3
-- 
1.7.3



More information about the Bugs-changes mailing list