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

Unified Diff: src/platform/init/dbus.conf

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 | « no previous file | src/scripts/customize_rootfs.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/init/dbus.conf
diff --git a/src/platform/init/dbus.conf b/src/platform/init/dbus.conf
index ee3f5891a11e88a2f5dd347314b9d23d5efc205e..1c84946661d902395fc07fe7c1dd946835c2c179 100644
--- a/src/platform/init/dbus.conf
+++ b/src/platform/init/dbus.conf
@@ -14,6 +14,9 @@ respawn
pre-start script
mkdir -p /var/run/dbus
chown messagebus.messagebus /var/run/dbus
+ if [ ! -f "/var/cache/machine-id" ]; then
+ dbus-uuidgen --ensure=/var/cache/machine-id
+ fi
end script
expect fork
« no previous file with comments | « no previous file | src/scripts/customize_rootfs.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698