From 3ca5eb88a964d540cb285d738205377d882ccfb7 Mon Sep 17 00:00:00 2001 From: "adlr@google.com" Date: Thu, 29 Oct 2009 21:25:46 +0000 Subject: [PATCH] xkb: allow it to write to /var/lib/xkb Long term (when we are compiling the xkb) package, we should put this change in that package. For now, we create a symlink from /var/lib/xkb to /var/tmp in customize_rootfs.sh tedbo@ found the solution. I just did the CL Review URL: http://chromereview.prom.corp.google.com/1181006 git-svn-id: svn://chrome-svn/chromeos/trunk@124 06c00378-0e64-4dae-be16-12b19f9950a1 --- customize_rootfs.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/customize_rootfs.sh b/customize_rootfs.sh index 61d3351b5f..df20506e8e 100755 --- a/customize_rootfs.sh +++ b/customize_rootfs.sh @@ -470,14 +470,12 @@ do mv /tmp/"$script" "$XSESSION_D" done -# Add some tmpfs filesystems to fstab to enable session semantics -cat <> /etc/fstab -/dev/root / rootfs ro 0 0 -tmpfs /tmp tmpfs rw,nosuid,nodev 0 0 -LABEL=C-STATE /mnt/stateful_partition ext3 rw 0 1 -/mnt/stateful_partition/home /home bind defaults,bind 0 0 -/mnt/stateful_partition/var /var bind defaults,bind 0 0 -EOF +# By default, xkb writes computed configuration data to +# /var/lib/xkb. It can re-use this data to reduce startup +# time. In addition, if it fails to write we've observed +# keyboard issues. We add a symlink to allow these writes. +rm -rf /var/lib/xkb +ln -s /var/cache /var/lib/xkb # Remove pam-mount's default entry in common-auth and common-session sed -i 's/^\(.*pam_mount.so.*\)/#\1/g' /etc/pam.d/common-*