-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
Static IP address scripts are incompatible with Raspberry Pi OS Bookworm #1680
Comments
@jdeanwallace - FYI. Not a priority right now, but if we have to write new code to touch dhcpcd, we should look into whether we can use CLI tools that will work on both Bullseye and Bookworm. |
@jdeanwallace - Since this is potentially blocking the remaining static IP tasks, can you take this on and see if it's possible to make changes to static IP settings in a way that works on both Bullseye and Bookworm? |
Also: to clarify scope, for now we just want to research a way to write new code that doesn't depend on dhcpcd. I'd like to avoid pausing to rewrite existing dhcpcd-based code unless we have to. |
Update 2023-11-21Objectives
Investigations
ConclusionIt seems like there isn't a way to support both |
@mtlynch - What do you think of the above conclusion that the new static IP scripts should still be written to only support |
I'm confused by this part. It sounds like we can tell NetworkManager to use dhcpcd, but it also says Am I understanding correctly that if we rewrote our scripts and image config to use NetworkManager on Bullseye, it would break legacy users who installed before this change and still depend on dhcpcd? It sounds like what we'll eventually need to do is have a thin wrapper over our networking scripts that's like: if BOOKWORM:
do it the NetworkManager way
else:
do it the dhcpcd way Is that right?
Yeah, this sounds right. I didn't want to dig ourselves deeper into dhcpcd if we could avoid it, but it sounds like we're not going that much deeper, and there's not much we can do to avoid it. |
Great question! I checked the logs and it seems like NetworkManager wasn't detecting I found a thread that suggested that the NetworkManager package might not have been built with So in theory, I guess we could technically re-use dhcpcd config via NetworkManager if we rebuild NetworkManager with dhcpcd enabled 🤔 (I haven't tested this)
Yes, that's right. |
@jdeanwallace - Gotcha, thanks. I'm moving this back to support eng since this is no longer blocking the static IP work. |
Related #1668
Our static IP address scripts make changes directly to
/etc/dhcpcd.conf
, but Raspberry Pi OS Bookworm usesNetworkManager
instead ofdhcpcd
. We should update our scripts to usenmcli
andip
.The text was updated successfully, but these errors were encountered: