diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2023-02-28 10:31:06 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2023-03-01 18:16:25 +0000 |
commit | a28ccb32bf5678fc401f1602865ee9b37ca4c990 (patch) | |
tree | 10494d5a6ba0351ca40efe343720e0b2919a5f84 | |
parent | b2b294f27cf4618d6f7510007b41882860a080b9 (diff) | |
download | src-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_id | 2 |
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.' |