Skip to content

Commit

Permalink
feat(dhcpcd): add /var/lib/dhcpcd writable-paths for datasource disco…
Browse files Browse the repository at this point in the history
…very

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.
  • Loading branch information
blackboxsw authored and alfonsosanchezbeato committed Aug 22, 2024
1 parent f7feaee commit 79b96ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions static/etc/system-image/writable-paths
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
/var/lib/apparmor auto persistent transition none
/var/lib/dbus auto persistent none none
/var/lib/dhcp auto persistent none none
/var/lib/dhcpcd auto persistent transition none
# cloud-init
/etc/cloud auto persistent transition none
/var/lib/cloud auto persistent none none
Expand Down

0 comments on commit 79b96ee

Please sign in to comment.