Bug 10186

Summary: udhcpc -h is deprecated but still used by ifup
Product: Busybox Reporter: Martin Gebert <Martin.Gebert>
Component: NetworkingAssignee: unassigned
Status: CLOSED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.23.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: Current BusyBox configuration

Description Martin Gebert 2017-08-08 09:25:54 UTC
Created attachment 7181 [details]
Current BusyBox configuration

Setting a DHCP hostname in /etc/network/interfaces like this

--8><--
auto eth0
iface eth0 inet dhcp
  hostname myhostname
--><8--

results in the following warning when starting up the network interfaces:

--8><--
[...]
udhcpc: option -h NAME is deprecated, use -x hostname:NAME
udhcpc (v1.23.1) started
[...]
--><8--

The script /etc/init.d/networking (from Poky 1.8) is using ifup, so there seems to be an BusyBox-internal incompatibility between these two tools.
Comment 1 Denys Vlasenko 2017-08-10 10:53:09 UTC
Fixed in git 5 years ago:

commit 1062391365981a09069f96509937b7f1181b7484
Author: Natanael Copa <natanael.copa@gmail.com>
Date:   Wed Sep 19 16:55:08 2012 +0200

    ifupdown: use -x hostname:NAME with udhcpc
Comment 2 Martin Gebert 2017-08-10 11:10:23 UTC
Thanks, the pointer to the patch is appreciated.