https://bugzilla.novell.com/show_bug.cgi?id=729536
https://bugzilla.novell.com/show_bug.cgi?id=729536#c4
--- Comment #4 from Bob Vickers 2012-10-08 13:22:56 UTC ---
There are two parts to fixing this bug. The first is to ensure that the file
/var/lib/dbus/machine-id is not distributed in future RPM packages.
But you also need to fix existing systems, and to do that I suggest that the
following code is included in /etc/init.d/dbus:
DBUS_MACHINE_ID_DIR="/var/lib/dbus"
DBUS_MACHINE_ID=$DBUS_MACHINE_ID_DIR/machine-id
DBUS_UUIIDGEN_BIN=/bin/dbus-uuidgen
host=$(hostname --fqdn)
if [[ -d $DBUS_MACHINE_ID_DIR && ! ( -e $DBUS_MACHINE_ID.$host ) ]]
then
dbus-uuidgen --ensure=$DBUS_MACHINE_ID.$host
cp -p $DBUS_MACHINE_ID.$host $DBUS_MACHINE_ID
fi
What this code does is to ensure that whenever dbus is first run on a machine
(identified by FQDN) then a new uuid is generated and saved in a specially
named file to record the fact. Once this file exists the uuid can be assumed to
be unique.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.