Commit ebe22ccd authored by Anton Midyukov's avatar Anton Midyukov

init: clear machine id

systemd create new uniq machine-id on first boot. so that during mass deployment of containers, virtual machines or live there are no identical machine-ids on computers in the same network. Reported by obirvalger@
parent 58c4156b
#!/bin/sh -eu
etc_machine_id=/etc/machine-id
dbus_machine_id=/var/lib/dbus/machine-id
[ -f "$etc_machine_id" ] || exit 0
rm -f "$etc_machine_id" "$dbus_machine_id"
touch "$etc_machine_id"
chmod 0444 "$etc_machine_id"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment