Bug 10636 - BR2_SYSTEM_DHCP is removed from .config and breaks auto eth0
Summary: BR2_SYSTEM_DHCP is removed from .config and breaks auto eth0
Status: RESOLVED INVALID
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2017.08
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-05 12:02 UTC by Patrice Blanchardie
Modified: 2018-01-05 17:23 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrice Blanchardie 2018-01-05 12:02:41 UTC
Hi,

The BR2_SYSTEM_DHCP config is needed if you want the package ifupdown-scripts to add automatic eth0 configuration to /etc/network/interfaces.

It's not available in menuconfig.
If you add it to the defconfig and make, it will be removed. You have to add it to the .config manually and make if you want proper files to be generated.

I'm using a custom skeleton and busybox.

Why is it suppressed? Am I doing something wrong?

Thanks, happy new year!
Comment 1 Patrice Blanchardie 2018-01-05 13:11:09 UTC
Should I stop relying on these ifup scripts and use a custom script with dhcp client at startup, as explained in https://busybox.net/~vda/no_ifup.txt?
Comment 2 Patrice Blanchardie 2018-01-05 15:30:38 UTC
I removed ifupdown scripts and emptied cd /etc/network folder and added an init script that uses ifconfig up and down then calls udhcpc, I suppose it's the preferred way.
Comment 3 Yann E. MORIN 2018-01-05 16:58:51 UTC
Patrice,

BR2_SYSTEM_DHCP is only available if you use the default skeleton, and any
of busybox, ifupdown or systemd-networkd package.

If you use your own custom skeleton, you are responsible for providing the
necessary files (usually /etc/network/interfaces) in your custom skeleton.

Regards,
Yann E. MORIN.
Comment 4 Patrice Blanchardie 2018-01-05 17:23:31 UTC
OK thanks for clarification