We can consider SRUing this to Jammy and Impish, which are affect too. But it doesn't feel too critical, as systemd-resolved usually wins the race vs NetworkManager/dhclient, as you stated: "but with NetworkManager as the netplan renderer, the dhclient script is called later and the dir is created correctly."
I'm marking the systemd component as "Invalid", as the fix is needed in other packages.
Thank you very much, Jamie, for your detailed analysis in #15!
I've applied the same fix to isc-dhcp https:/ /launchpad. net/ubuntu/ +source/ isc-dhcp/ 4.4.1-2. 3ubuntu3
We can consider SRUing this to Jammy and Impish, which are affect too. But it doesn't feel too critical, as systemd-resolved usually wins the race vs NetworkManager/ dhclient, as you stated: "but with NetworkManager as the netplan renderer, the dhclient script is called later and the dir is created correctly."
I'm marking the systemd component as "Invalid", as the fix is needed in other packages.