mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +02:00
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
This commit is contained in:
parent
fc13bc2353
commit
3ca5eb88a9
@ -470,14 +470,12 @@ do
|
|||||||
mv /tmp/"$script" "$XSESSION_D"
|
mv /tmp/"$script" "$XSESSION_D"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Add some tmpfs filesystems to fstab to enable session semantics
|
# By default, xkb writes computed configuration data to
|
||||||
cat <<EOF >> /etc/fstab
|
# /var/lib/xkb. It can re-use this data to reduce startup
|
||||||
/dev/root / rootfs ro 0 0
|
# time. In addition, if it fails to write we've observed
|
||||||
tmpfs /tmp tmpfs rw,nosuid,nodev 0 0
|
# keyboard issues. We add a symlink to allow these writes.
|
||||||
LABEL=C-STATE /mnt/stateful_partition ext3 rw 0 1
|
rm -rf /var/lib/xkb
|
||||||
/mnt/stateful_partition/home /home bind defaults,bind 0 0
|
ln -s /var/cache /var/lib/xkb
|
||||||
/mnt/stateful_partition/var /var bind defaults,bind 0 0
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Remove pam-mount's default entry in common-auth and common-session
|
# Remove pam-mount's default entry in common-auth and common-session
|
||||||
sed -i 's/^\(.*pam_mount.so.*\)/#\1/g' /etc/pam.d/common-*
|
sed -i 's/^\(.*pam_mount.so.*\)/#\1/g' /etc/pam.d/common-*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user