From ecd120fe86c59f4104a72c4869b2e9efd829c67d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 25 Sep 2019 22:14:00 +0200 Subject: [PATCH] write hostname to hosts file, in particular to prevent sudo warnings --- modules/default.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/default.mk b/modules/default.mk index 6a1907a..d4c9640 100644 --- a/modules/default.mk +++ b/modules/default.mk @@ -102,6 +102,7 @@ _users: ${CFGROOT} _hostname: ${CFGROOT} printf '%s\n' "$${hostname}" >"$${CFGROOT}/etc/hostname" + sed -Ei "/127.0.0.1/a $${hostname}" "$${CFGROOT}/etc/hosts" ifdef wifi _config: ${CFGROOT}/etc/network/interfaces.d/wifi -- 2.39.2