Author:ptrace
Comitter:ptrace
Date:2026-08-24 00:05:43 UTC
diff --git a/systemd/reset-machine-id-on-reboot.service b/systemd/reset-machine-id-on-reboot.service
new file mode 100644
index 0000000..d643833
--- /dev/null
+++ b/systemd/reset-machine-id-on-reboot.service
@@ -0,0 +1,13 @@
[Unit]
Description=Nuke machine-id on shutdown
DefaultDependencies=no
Before=shutdown.target reboot.target halt.target
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'echo > /etc/machine-id'
RemainAfterExit=yes
[Install]
WantedBy=shutdown.target reboot.target halt.target