[Buildroot] [PATCH 1/1] package/dhcpcd: create /var/db/dhcpcd

Nicolas Cavallari nicolas.cavallari at green-communications.fr
Tue Feb 2 17:40:22 UTC 2021


On 02/02/2021 16:40, Peter Korsgaard wrote:
>>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice at gmail.com> writes:
> 
>   > Fixes:
>   >  - https://bugs.buildroot.org/show_bug.cgi?id=13506
> 
>   > Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
>   > ---
>   >  package/dhcpcd/dhcpcd.mk | 1 +
>   >  1 file changed, 1 insertion(+)
> 
>   > diff --git a/package/dhcpcd/dhcpcd.mk b/package/dhcpcd/dhcpcd.mk
>   > index cb269f1138..81e87369ad 100644
>   > --- a/package/dhcpcd/dhcpcd.mk
>   > +++ b/package/dhcpcd/dhcpcd.mk
>   > @@ -46,6 +46,7 @@ endef
>   
>   >  define DHCPCD_INSTALL_TARGET_CMDS
>   >  	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install DESTDIR=$(TARGET_DIR)
>   > +	mkdir -p $(TARGET_DIR)/var/db/dhcpcd
> 
> What is stored here? Does it need to persist over reboots? How should a
> readonly rootfs be handled? Could we perhaps make it a symlink to /run
> or similar?
> 

It stores DHCP DUID and IPv6 stable privacy secrets.  It must persist 
over reboots, or the features that need them must be disabled or 
configured not to.

Apparently, dhcpcd is smart enough to detect read only systems and plan 
accordingly, but i did not test it.



More information about the buildroot mailing list