diff options
-rwxr-xr-x | functions/defaults.sh | 2 | ||||
-rwxr-xr-x | share/hooks/004-remove-dbus-machine-id.chroot | 9 |
2 files changed, 11 insertions, 0 deletions
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 |