Ubuntu/machine-id

From Omnia
Revision as of 20:03, 4 February 2024 by Kenneth (talk | contribs) (Created page with "Ubuntu to regen machine-id <ref>https://unix.stackexchange.com/questions/402999/is-it-ok-to-change-etc-machine-id</ref> # clear rm -f /etc/machine-id /var/lib/dbus/machine-id # regen dbus-uuidgen --ensure systemd-machine-id-setup # verify: cat /etc/machine-id /var/lib/dbus/machine-id hostnamectl")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Ubuntu to regen machine-id [1]

# clear
rm -f /etc/machine-id /var/lib/dbus/machine-id
# regen
dbus-uuidgen --ensure
systemd-machine-id-setup
# verify:
cat /etc/machine-id /var/lib/dbus/machine-id
hostnamectl