summaryrefslogtreecommitdiffstats
path: root/generic/etc/rc.once.d/dbus
diff options
context:
space:
mode:
Diffstat (limited to 'generic/etc/rc.once.d/dbus')
-rw-r--r--generic/etc/rc.once.d/dbus5
1 files changed, 5 insertions, 0 deletions
diff --git a/generic/etc/rc.once.d/dbus b/generic/etc/rc.once.d/dbus
index 270c72ed3..d456542cc 100644
--- a/generic/etc/rc.once.d/dbus
+++ b/generic/etc/rc.once.d/dbus
@@ -2,6 +2,11 @@
MACHINE_ID="/etc/machine-id"
+if mount | grep -q "${MACHINE_ID}"; then
+ umount "${MACHINE_ID}" &&
+ rm "${MACHINE_ID}"
+fi &&
+
dbus-uuidgen --ensure="${MACHINE_ID}" &&
chmod 0444 "${MACHINE_ID}"