dhcpcd-discuss

Re: Enable promote_secondaries conditionally

Roy Marples

Sat May 03 10:19:27 2014

On 02/05/2014 21:16, Leonid Isaev wrote:
Hi,

	Currently dhcpcd attempts to set promote_secondaries to 1 (in
if-linux.c, if_init()), and fails if /proc/sys if mounted ro. Hence, dhcpcd
will not work in systemd-nspawn containers which mount /proc/sys ro.
	I understand why multiple IP addresses are useful, but perhaps
if_init() should check whether promote_secondaries == 0 and write to it only
in this case?

I can't argue with that logic.

Fixed here:
http://roy.marples.name/projects/dhcpcd/fdiff?v1=0ef160bc736bfd45&v2=1685c4313c847b3f&sbs=0

Then new code also makes the code size a little smaller :)

Thanks

Roy

Follow-Ups:
Re: Enable promote_secondaries conditionallyLeonid Isaev
References:
Enable promote_secondaries conditionallyLeonid Isaev
Archive administrator: postmaster@marples.name