From 6d7dbfbee903ab3127f9fd4782bc6b8f77e542fd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 22 Oct 2011 18:06:03 +0200 Subject: [PATCH] Adding hook to remove dbus machine id. --- functions/defaults.sh | 2 ++ share/hooks/004-remove-dbus-machine-id.chroot | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100755 share/hooks/004-remove-dbus-machine-id.chroot diff --git a/functions/defaults.sh b/functions/defaults.sh index 25d973d6a..adfd172a6 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -629,6 +629,7 @@ Set_defaults () LB_CHROOT_HOOKS="${LB_CHROOT_HOOKS:-update-apt-file-cache \ update-apt-xapian-index \ update-mlocate-database \ + remove-dbus-machine-id \ remove-openssh-server-host-keys \ remove-python-py \ remove-udev-persistent-rules}" @@ -638,6 +639,7 @@ Set_defaults () LB_CHROOT_HOOKS="${LB_CHROOT_HOOKS:-update-apt-file-cache \ update-apt-xapian-index \ update-mlocate-database \ + remove-dbus-machine-id \ remove-gnome-icon-cache \ remove-openssh-server-host-keys \ remove-python-py \ diff --git a/share/hooks/004-remove-dbus-machine-id.chroot b/share/hooks/004-remove-dbus-machine-id.chroot new file mode 100755 index 000000000..230099e46 --- /dev/null +++ b/share/hooks/004-remove-dbus-machine-id.chroot @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +# Remove dbus machine id. +# +# This removes dbus machine id that cache that makes each system unique. + +rm -f /var/lib/dbus/machine-id