network-generator: also copy drop-ins for networkd.conf from credential

Follow-up for 1a30285590.
This commit is contained in:
Yu Watanabe
2024-04-16 12:45:08 +09:00
parent 11fc03dfff
commit e12e16e9f7
3 changed files with 17 additions and 13 deletions
+4 -3
View File
@@ -234,9 +234,10 @@ static int run(int argc, char *argv[]) {
RET_GATHER(ret, context_save(&context));
static const PickUpCredential table[] = {
{ "network.link.", NETWORK_UNIT_DIRECTORY, ".link" },
{ "network.netdev.", NETWORK_UNIT_DIRECTORY, ".netdev" },
{ "network.network.", NETWORK_UNIT_DIRECTORY, ".network" },
{ "network.conf.", "/run/systemd/networkd.conf.d/", ".conf" },
{ "network.link.", NETWORK_UNIT_DIRECTORY, ".link" },
{ "network.netdev.", NETWORK_UNIT_DIRECTORY, ".netdev" },
{ "network.network.", NETWORK_UNIT_DIRECTORY, ".network" },
};
RET_GATHER(ret, pick_up_credentials(table, ELEMENTSOF(table)));