From 3d0064996322e17a8da0b21ecdc03167bef6170a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=BCbner?= Date: Fri, 24 Nov 2023 19:07:01 +0100 Subject: [PATCH] lowercase hostname --- installer/late.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/late.sh b/installer/late.sh index deef93d..42a879c 100755 --- a/installer/late.sh +++ b/installer/late.sh @@ -9,7 +9,7 @@ domain="@DOMAIN@" if test "${hostname}" == "undefined"; then # generate hostname from mac addresses - hostname="DEB$(cat /sys/class/net/*/address | tr -d '\n' | sha256sum | tr '[:lower:]' '[:upper:]' | head -c 5)" + hostname="deb$(cat /sys/class/net/*/address | tr -d '\n' | sha256sum | head -c 5)" echo "${hostname}" >"${prefix}/etc/hostname" cat <"${prefix}/etc/hosts" 127.0.0.1 localhost