zfs hostId: Instructions to derive from machine-id
commit5f7530a1d7bf3a733213f5c7666a6b6398aa48a9
authorwmertens <Wout.Mertens@gmail.com>
dateThu 18 Dec 2014, 22:52 (12 years ago)
parent86971fd
nixos/modules/tasks/network-interfaces.nix+5−1
@@ -233,8 +233,12 @@ in
233233 The 32-bit host ID of the machine, formatted as 8 hexadecimal characters.
234234
235235 You should try to make this ID unique among your machines. You can
236− generate a random 32-bit ID using the following command:
236+ generate a random 32-bit ID using the following commands:
237237
238+ <literal>cksum /etc/machine-id | while read c rest; do printf "%x" $c; done</literal>
239+
240+ (this derives it from the machine-id that systemd generates) or
241+
238242 <literal>head -c4 /dev/urandom | od -A none -t x4</literal>
239243 '';
240244 };