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-01 18:16:25 +0000
commita28ccb32bf5678fc401f1602865ee9b37ca4c990 (patch)
tree10494d5a6ba0351ca40efe343720e0b2919a5f84
parentb2b294f27cf4618d6f7510007b41882860a080b9 (diff)
downloadsrc-a28ccb32bf5678fc401f1602865ee9b37ca4c990.tar.gz
src-a28ccb32bf5678fc401f1602865ee9b37ca4c990.zip
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
-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.'