From 23e5f409d945e7ec6b409d5d583901b9e4d21e04 Mon Sep 17 00:00:00 2001 From: Felipe Sateler Date: Sun, 26 Feb 2017 13:10:36 -0300 Subject: [PATCH] Also nuke the dbus machine id Otherwise the machine-id will not really be a new one --- mkosi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mkosi b/mkosi index df875c88a..d6a4e5c8b 100755 --- a/mkosi +++ b/mkosi @@ -937,6 +937,10 @@ def reset_machine_id(args, workspace, run_build_script): machine_id = os.path.join(workspace, 'root', 'etc/machine-id') os.unlink(machine_id) open(machine_id, "w+b").close() + dbus_machine_id = os.path.join(workspace, 'root', 'var/lib/dbus/machine-id') + if os.path.exists(dbus_machine_id): + os.unlink(dbus_machine_id) + os.symlink('../../../etc/machine-id', dbus_machine_id) def set_root_password(args, workspace, run_build_script): "Set the root account password, or just delete it so it's easy to log in" -- 2.47.2