mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 00:50:50 +00:00
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
This commit is contained in:
parent
b2b294f27c
commit
a28ccb32bf
|
@ -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.'
|
||||
|
|
Loading…
Reference in a new issue