git: ebca19e71d8b - stable/13 - machine-id: generate a compact version of the uuid

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Mon, 06 Mar 2023 08:05:04 UTC
The branch stable/13 has been updated by bapt:

URL: https://cgit.FreeBSD.org/src/commit/?id=ebca19e71d8b58c2da1ac1bb34ed37a647903797

commit ebca19e71d8b58c2da1ac1bb34ed37a647903797
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2023-02-28 10:31:06 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2023-03-06 08:04:44 +0000

    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)
---
 libexec/rc/rc.d/machine_id | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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.'