mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 05:56:58 +02:00
Run dbus-uuidgen on system startup (again).
A few weeks ago, dbus-uuidgen command was removed from the platform/init/dbus.conf script, but after the "upgrade-everything-to-Karmic" change, I think generating the uuid has become mandatorty again. Without the uuid file (/var/lib/dbus/machine-id), ibus-daemon which uses D-Bus as its IPC channel does not work at all. I'm not sure but possibly the same is true for dbus-daemon? chronos@localhost:/home/chronos$ ibus-daemon process 2254: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory See the manual page for dbus-uuidgen to correct this issue. BUG=1127 TEST=On xterm, run /usr/bin/ibus-setup and verify the command does not show an error like "ibus-daemon is not working." Review URL: http://codereview.chromium.org/508018
This commit is contained in:
parent
ccd326b84d
commit
c1d3332aed
@ -242,6 +242,10 @@ sudo ln -s /var/cache "${ROOT_FS_DIR}/var/lib/xkb"
|
|||||||
sudo rm -rf "${ROOT_FS_DIR}/var/lib/DeviceKit-disks"
|
sudo rm -rf "${ROOT_FS_DIR}/var/lib/DeviceKit-disks"
|
||||||
sudo ln -s /var/tmp "${ROOT_FS_DIR}/var/lib/DeviceKit-disks"
|
sudo ln -s /var/tmp "${ROOT_FS_DIR}/var/lib/DeviceKit-disks"
|
||||||
|
|
||||||
|
# dbus-uuidgen writes machine-id to /var/lib/dbus.
|
||||||
|
sudo rm -f "${ROOT_FS_DIR}/var/lib/dbus/machine-id"
|
||||||
|
sudo ln -s /var/cache/machine-id "${ROOT_FS_DIR}/var/lib/dbus/machine-id"
|
||||||
|
|
||||||
# Remove pam-mount's default entry in common-auth and common-session
|
# Remove pam-mount's default entry in common-auth and common-session
|
||||||
sudo sed -i 's/^\(.*pam_mount.so.*\)/#\1/g' "${ROOT_FS_DIR}"/etc/pam.d/common-*
|
sudo sed -i 's/^\(.*pam_mount.so.*\)/#\1/g' "${ROOT_FS_DIR}"/etc/pam.d/common-*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user