tinkerbell/hook

why is dhcpcd being added to onboot?

rgl opened this issue · 1 comments

rgl commented

why is dhcpcd being added to onboot?

hook/hook.yaml

Lines 14 to 16 in 7b64378

- name: dhcpcd
image: linuxkit/dhcpcd:v0.8
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]

the commit that introduced those changes does not describe why.

the differences between hook.yaml and hook_debug.yaml should only be in the later having the sshd service? if so, can the two files reflect that?

So! The reason that we do a dhcpd on onboot, is because onboot executes before services and services are all started in parallel. The problem with dhcpd happening in services is that dhcpd can take too long before dockerd tries to pull an image with no network config.