Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Unified Diff: src/scripts/customize_rootfs.sh

Issue 508018: Run dbus-uuidgen on system startup (again). (Closed)
Patch Set: change directory link to file link Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/init/dbus.conf ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/customize_rootfs.sh
diff --git a/src/scripts/customize_rootfs.sh b/src/scripts/customize_rootfs.sh
index 5f165b75f23d74dd43169b7c146e942d98a72614..4a0a8580ff6293b97d886fc8c38a304fdbe61548 100755
--- a/src/scripts/customize_rootfs.sh
+++ b/src/scripts/customize_rootfs.sh
@@ -238,6 +238,10 @@ sudo ln -s /var/cache "${ROOT_FS_DIR}/var/lib/xkb"
sudo rm -rf "${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
sudo sed -i 's/^\(.*pam_mount.so.*\)/#\1/g' "${ROOT_FS_DIR}"/etc/pam.d/common-*
« no previous file with comments | « src/platform/init/dbus.conf ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698