Subject: xsrc/30982: move /usr/X11R6/lib/X11/xkb/compiled to /var
To: None <xsrc-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <joern@TechFak.Uni-Bielefeld.DE>
List: netbsd-bugs
Date: 08/13/2005 17:18:00
>Number:         30982
>Category:       xsrc
>Synopsis:       move /usr/X11R6/lib/X11/xkb/compiled to /var
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    xsrc-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 13 17:18:00 +0000 2005
>Originator:     Joern Clausen
>Release:        
>Organization:
>Environment:
>Description:
The X server uses the directory /usr/X11R6/lib/X11/xkb/compiled to store compiled keymaps. If this directory is on a read-only filesystem, keymaps cannot be changed (e.g. via XF86Config). The error message in /var/log/XFree86.0.log is not very helpful in tracing the problem, and it seems impossible to configure this directory, except modifying the server (as the README in the directory states).

IMHO, /usr should be read-only (and shareable, see the README). The X server should be changed to use a directory under /var for volatile files like compiled keymaps.
>How-To-Repeat:
mount /usr read-only or create a live CD with mklivecd
>Fix:
temporary hack: symlink directory to somewhere under /var