From 0c627bdc66e6907c72ed15fcec82d2ed386acc3c Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Tue, 31 Mar 2026 19:59:47 +0200 Subject: [PATCH] /etc/hostid is a binary file --- initialize-host-id | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initialize-host-id b/initialize-host-id index c45255d..74ece9d 100644 --- a/initialize-host-id +++ b/initialize-host-id @@ -4,5 +4,5 @@ # Initialize /etc/hostid if it doesn't exist or is empty # if [ ! -f /etc/hostid -o "$(cat /etc/hostid 2>/dev/null)" = "" ]; then - hexdump -n 4 -e '"%02x"' /dev/urandom >/etc/hostid + dd if=/dev/urandom bs=4 count=1 of=/etc/hostid fi