Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:linux:nfs_unique_machineid [2020/05/06 01:21] – created alex | en:linux:nfs_unique_machineid [2020/05/06 01:59] (current) – alex | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Unique machine ID for nfs root systems ====== | ====== Unique machine ID for nfs root systems ====== | ||
| + | When multiple hosts running systemd share the same NFS root, they will also share the same machine-id. | ||
| + | Create the file ''/ | ||
| + | |||
| + | <code bash machineid> | ||
| + | #!/bin/sh -e | ||
| + | |||
| + | PREREQS="" | ||
| + | |||
| + | prereqs() { echo " | ||
| + | |||
| + | case " | ||
| + | prereqs) | ||
| + | prereqs | ||
| + | exit 0 | ||
| + | ;; | ||
| + | esac | ||
| + | |||
| + | # write sanitized motherboard UUID to / | ||
| + | sed ' | ||
| + | |||
| + | # requires the following symbolic links: | ||
| + | # ln -sf / | ||
| + | # ln -sf / | ||
| + | |||
| + | </ | ||
| + | |||
| + | Rebuild the initramfs (for example '' | ||