From 9c03601dc086a32e4e31cb9995b409adbea46e7d Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sat, 12 Mar 2022 16:25:56 -0600 Subject: [PATCH] rootfs: Set default hostname to localhost *dhcpcd* does not set the system host name to the value provided in the DHCP lease unless the current hostname matches its compiled-in default value (which is `(none)`) or is *localhost*. I'm not sure how to change the former, but we can easily set the default to the latter to enable dynamic hostname configuration via DHCP. --- configs/jenkinsagent_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/jenkinsagent_defconfig b/configs/jenkinsagent_defconfig index 068e200..d9778cd 100644 --- a/configs/jenkinsagent_defconfig +++ b/configs/jenkinsagent_defconfig @@ -4,6 +4,7 @@ BR2_ARM_FPU_VFPV4=y BR2_TOOLCHAIN_BUILDROOT_GLIBC=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y BR2_TOOLCHAIN_BUILDROOT_CXX=y +BR2_TARGET_GENERIC_HOSTNAME="localhost" BR2_INIT_SYSTEMD=y # BR2_TARGET_ENABLE_ROOT_LOGIN is not set BR2_SYSTEM_DEFAULT_PATH="/bin:/sbin:/usr/bin:/usr/sbin"