From 82131cdc49e230b99fa8e4415436dd657d73062a Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 14 Nov 2024 22:07:07 +0100 Subject: [PATCH] fix: Generate UUID --- src/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index 3322c21..13992d2 100644 --- a/src/install.sh +++ b/src/install.sh @@ -76,7 +76,7 @@ generateID() { [ -s "$file" ] && UUID=$(<"$file") [ -n "$UUID" ] && return 0 - UUID=$(cat /proc/sys/kernel/random/uuid) + UUID=$(cat /proc/sys/kernel/random/uuid 2> /dev/null || uuidgen --random) echo "${UUID^^}" > "$file" return 0