Bug 10186 - udhcpc -h is deprecated but still used by ifup
Summary: udhcpc -h is deprecated but still used by ifup
Status: CLOSED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: 1.23.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-08 09:25 UTC by Martin Gebert
Modified: 2017-08-10 11:10 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Current BusyBox configuration (29.11 KB, text/plain)
2017-08-08 09:25 UTC, Martin Gebert
Details

Note You need to log in before you can comment on or make changes to this bug.
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.