Package: linuxlogo
Version: 4.09-2
Severity: wishlist

/etc/init.d/linuxlogo writes the files issue.linuxlogo and
issue.linuxlogo.ascii to /etc/ at run time.  This is one of very
few remaining obstacles to mounting the root filesystem read-only[0]
and is arguably a FHS violation.  Fortunately there is a simple
solution which is to store the files under /var/ and symlink them
back to their old locations.  Specifically, create the directory
/var/run/linuxlogo/ and create two symbolic links:

   /etc/issue.linuxlogo -> /var/run/linuxlogo/issue
   /etc/issue.linuxlogo.ascii -> /var/run/linuxlogo/issue.ascii

Of course the administrator can do this himself, but I see no 
reason not to make this the default arrangement.

To implement this in the linuxlogo package, the following could be
done.

* Add /var/run/linuxlogo to dirs.
* Add code like the following to the beginning of the postinst script:
 
  for F in issue.linuxlogo issue.linuxlogo.ascii ; do
      if [ ! -L /etc/$F ] ; then
          [ -e /etc/$F ] && mv -f /etc/$F /var/run/linuxlogo/$F
          ln -sf /var/run/linuxlogo/$F /etc/$F
      fi
  done

This seems to be all that is necessary, although for cleanliness you
might want to modify the initscript too.

If the two files need to be preserved across reboots for some reason
then use /var/lib/linuxlogo/ instead of /var/run/linuxlogo/ and take
care to delete the files from /var/lib/linuxlogo/ in the postrm on
purge.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages linuxlogo depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- debconf information:
* linuxlogo/installation:
* linuxlogo/mode: Login


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to