New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dhcpcd: 8.1.4 -> 9.4.0 #116220
dhcpcd: 8.1.4 -> 9.4.0 #116220
Conversation
I'm currently testing this commit cherry-picked ontop of 20.09 and just realised, that this causes dhcpcd to timeout and restart in an endless loop. Converting to draft for now. |
I marked this as stale due to inactivity. → More info |
No! but @erictapen could you rebase please? |
cb8acf4
to
65fba54
Compare
@mohe2015 Sure! Done. |
- Removed note about testing and moved it to passthru.tests - Removed patch, as it is probably the same as 56b2bb17d2ec67e1f93950944211f6cf8c40e0fb, wich landed in upstream. - Added myself as maintainer
65fba54
to
597ab41
Compare
dhcpcd 9.4.1 has been released. this also requires changes to the dhcpcd module since the pidfile location has changed: diff --git a/nixos/modules/services/networking/dhcpcd.nix b/nixos/modules/services/networking/dhcpcd.nix
index 31e4b6ad29..0c69caa64b 100644
--- a/nixos/modules/services/networking/dhcpcd.nix
+++ b/nixos/modules/services/networking/dhcpcd.nix
@@ -207,13 +207,19 @@ in
serviceConfig =
{ Type = "forking";
- PIDFile = "/run/dhcpcd.pid";
+ PIDFile = "/run/dhcpcd/pid";
ExecStart = "@${dhcpcd}/sbin/dhcpcd dhcpcd --quiet ${optionalString cfg.persistent "--persistent"} --config ${dhcpcdConf}";
ExecReload = "${dhcpcd}/sbin/dhcpcd --rebind";
Restart = "always";
}; we're currently trying to get privsep working as well, that would be nice to have. |
@pennae I recently switched my last installation from dhcpcd to systemd-networkd, so I likely won't work on this any further. Maybe it would make sense for you to open a new PR with your progress? You could ofc also push to my branch. |
can we even push to your branch as not-committers? if not we'll have to open a new PR (or also switch to networkd, which we're a bit hesitant about since last we tried it segfaulted a lot 😕) |
Ah, oversaw that you don't have commit access. I guess then you'd need to open your own PR to move this forward. GitHub should have an mechanism for transferring ownership of a PR.. segfaulting a lot is not good 😳 For me it has been a pleasant transition, but I don't have a very complex networking setup. |
Thanks! We'll continue this in #147516. |
Things done
passthru.tests
Traditionally,
dhcpcd
upgrades can break a lot of things in a bad way, but I guess not upgrading it for 15 months isn't a solution either. So this would require thorough testing. Unfortunately I'm mostly using systemd-networkd on my machines, so I can't really provide much real world testing experience any more.sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)