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