writable-paths: add /var/lib/dhcpcd writable-paths for datasource discovery
If dhcpcd is installed in a cloud image, cloud-init may attempt early datasource discovery using dhcpcd in order to get information about active instance metadata service IP addresses and routes. The dhcpcd client writes out leases which cloud-init parses under /var/lib/dhcpcd.
Add this support so cloud-init can detect network-bound datasources such as Azure, Ec2 and GCE.
@blackboxsw would you mind proposing also to the core24 branch? We already forked.
Thanks @alfonsosanchezbeato. reset the root upstream/core24 and rebased my changeset on top.
@blackboxsw please propose also to main branch
@blackboxsw please propose also to main branch
Thanks @alfonsosanchezbeato just pushed https://github.com/canonical/core-base/pull/237 for a PR against main as well.