From 8be7e26173fdfc8c844a930da23e07eb22f63fbd Mon Sep 17 00:00:00 2001
From: Shashank Hebbar <shashankhebbarm@gmail.com>
Date: Sat, 11 Nov 2023 17:28:52 +0530
Subject: [PATCH] systemd-machine-id-setup: add page (#11447)

* systemd-machine-id-setup: add page

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
---
 pages/linux/systemd-machine-id-setup.md | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 pages/linux/systemd-machine-id-setup.md

diff --git a/pages/linux/systemd-machine-id-setup.md b/pages/linux/systemd-machine-id-setup.md
new file mode 100644
index 0000000000..49e873f471
--- /dev/null
+++ b/pages/linux/systemd-machine-id-setup.md
@@ -0,0 +1,21 @@
+# systemd-machine-id-setup
+
+> Initialize the machine ID stored in `/etc/machine-id` at install time with a provisioned or randomly generated ID.
+> Note: Always use `sudo` to execute these commands as they require elevated privileges.
+> More information: <https://www.freedesktop.org/software/systemd/man/systemd-machine-id-setup.html>.
+
+- Print the generated or committed machine ID:
+
+`systemd-machine-id-setup --print`
+
+- Specify an image policy:
+
+`systemd-machine-id-setup --image-policy={{your_policy}}`
+
+- Display the output as JSON:
+
+`sudo systemd-machine-id-setup --json=pretty`
+
+- Operate on a disk image instead of a directory tree:
+
+`systemd-machine-id-setup --image={{/path/to/image}}`