Subject: klibc-utils: ipconfig fails to set hostname from dhcp reply Package: klibc-utils Version: 1.3.35-0bpo1 Severity: important Tags: patch
*** Please type your report below this line *** I have just been trying to upgrade our diskless boot setup at work to use the latest kernels, and found that now, with the dhcp being done outside the kernel by ipconfig, the hostname is no longer set to that provided by the dhcp server. This is a regression from the stable sarge kernel, and breaks our method of configuring particular machines, hence the high severity. Here is a patch, to make up for it! --- usr/kinit/ipconfig/main.c-prebdb 2006-07-07 00:36:24.305742757 +0100 +++ usr/kinit/ipconfig/main.c 2006-07-07 00:42:34.729523904 +0100 @@ -87,6 +87,9 @@ if (netdev_setdefaultroute(dev)) printf("IP-Config: failed to set default route on %s\n", dev->name); + if (dev->hostname[0] && sethostname(dev->hostname,strlen(dev->hostname))) + printf("IP-Config: failed to set hostname '%s' from %s\n",dev->hostname,dev->name); + } static void dump_device_config(struct netdev *dev) -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.6.8-2-k7-smp Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages klibc-utils depends on: ii libklibc 1.3.35-0bpo1 minimal libc subset for use with i -- no debconf information -- [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]