aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2023-02-28 10:31:06 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2023-03-06 08:04:44 +0000
commitebca19e71d8b58c2da1ac1bb34ed37a647903797 (patch)
treeafd6b44e8b0161d5472347a566adc5df3a3c1b92
parent551a3a645645e4652c33dc0fda11a57aa56ad4f2 (diff)
machine-id: generate a compact version of the uuid
dbus and other actually expect an uuid without hyphens Reported by: tijl MFC After: 3 days (cherry picked from commit a28ccb32bf5678fc401f1602865ee9b37ca4c990)
-rw-r--r--libexec/rc/rc.d/machine_id2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rc/rc.d/machine_id b/libexec/rc/rc.d/machine_id
index 7cfd7b2d92f8..8bf3e41d0603 100644
--- a/libexec/rc/rc.d/machine_id
+++ b/libexec/rc/rc.d/machine_id
@@ -23,7 +23,7 @@ machine_id_start()
if [ ! -f ${machine_id_file} ] ; then
startmsg -n "Creating ${machine_id_file} "
t=$(mktemp -t machine-id)
- /bin/uuidgen -r -o $t
+ /bin/uuidgen -r -c -o $t
install -C -o root -g wheel -m ${machine_id_perms} "$t" "${machine_id_file}"
rm -f "$t"
startmsg 'done.'