Bug 10636

Summary: BR2_SYSTEM_DHCP is removed from .config and breaks auto eth0
Product: buildroot Reporter: Patrice Blanchardie <patrice.blanchardie>
Component: OtherAssignee: unassigned
Status: RESOLVED INVALID    
Severity: normal CC: buildroot, yann.morin.1998
Priority: P5    
Version: 2017.08   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

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