-
Notifications
You must be signed in to change notification settings - Fork 150
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
wpa_supplicant autoconfigure removed in bookworm but not replaced with other mechanism, breaking network module #219
Comments
Asked here NetworkManager if we need to generate a uuid or not: |
Confirmed, providing no uuid just generates one. |
At this point this works, the question is if to adopt what @KwadFan was working on in Mainsail, the wrote their own solution. |
I dont mind doing a PR if wished. My goal here was to keep it simple as possible, because the users we are aiming for, dont want to spend to much effort to get this thing connected. But this method is odd, if you really know how to deal with .nmconnection files, you simply dont have the "power" to setup what ever you want. For now, I would suggest, running both versions inside your repo and let maintainer decide what to use. As an example for FullPageOS, honestly I hadnt a usecase for it yet but, I think some of your users dont want to deal with complicated network setup, the simply want to connect it to their WiFi networks. Maybe "our" solution is more handy in terms of "ease of use". But I can imaging there are human beeings with a deeper need to setup network connection in a advanced way. |
I think that most people use rpi-imager. The question is what are the current usecase for this configuration ATM. Its still relevant for non-rpi images. I want to ask foosel tomorrow what she thinks tool. And if anyone else wants to comment here that would really help us decide what is the best move for the future. |
In this case, I wanted a solution that works with Armbian based and Rpi based images in the same way. But, yes, at this point "we" need some handy input from our communities/devs/endusers about the methods! Regards Kwad |
Hey mention now @foosel , hope you have time to review this, would value what you think about it. |
Tbh, at this point I'm fine with anything as long as the RPI Imager method (currently that's a For the record, this is the current Personally I'd suggest going with something like the solution of @KwadFan, as that will keep existing stuff working and just act if required, from how I understand it. Though I would maybe go with a different name than |
So, I dont mind working on this, to get it suitable for all of us. But I see, there is a need for some more advanced setup as in its current state, therefor I would learn more about the whole options we could set with it. That said I wouldnt change the service itself in it's current form because it works well, but I would enhance the underlying script for better options. Maybe it is also a good idea to transform the .txt with something like And as @foosel mentioned, yes, the name is pretty much what came to my mind because I am aware of the underlying system and was a obvious choice, but in "enduser" perspective thats really meaningless. To come to an end here, what should be discussed?
Please answer to those questions and I will work on this pretty quickly, because I am aware we need to update to bookworm asap. Bullseye is coming to an end and if I am not mistaken none of our projects is on bookworm right now. In general, I would prefer to have that upstream, then using my version. Regards Kwad |
A very good idea, we've seen a ton of issues in the past with this. With the old network configuration approach that predates RPiOS'
I think the service name is totally fine, it's more the config file I'm worried about. How about "network_config.txt"?
So, what's an issue with 3. is that this won't allow to set the wifi country as with NM that's now handled separately from the wifi config itself. I'm wondering if we should maybe just keep things ultra flexible by going with a config file like now, but also supporting a key
It would be interesting to see what happens when you put multiple connection files into the folder, basically leaving
How about something like |
@foosel Here are my thoughts about your suggestions. Renaming the file to What makes me very anxious is your suggestions about the "inline nmconfig", especcially Also, you suggested to not replace the That said, boils it down to what I had in mind, something like So, we (in that meaning you, Guy and me) should have a clear path how it should look like without dictating against each other. I am at will to work on it for sure, but I dont want to make work more than once. So, we really should decide together how it should be look like before I write a line of code. Regards Kwad |
True, there's a risk here, and you are right, people will break everything. Forget that I suggested that 😅
It was just an idea to allow for easier advanced configuration and less interference with existing (RPi specific) stuff, I'm fine either way :) A dedicated My point of view here in general is really to allow for an easy mechanism that always works and doesn't require the use of the imager/ Now, with that being said, I'm wondering if we shouldn't just consider wifi configuration and country setting separate cases, that would make everything much easier. A single The question this raises of course is whether we trust users to do configuration directly on simple |
* Since RPI nor Armbian have a possibility to change (WiFi) networks after initial flash, adding a solution that it makes it possible to generate a new 'preconfigured.nmconnection' (this one is generated by rpi-imager) * As discussed here guysoft#219 Signed-off-by: Stephan Wendel <[email protected]>
Just a start of solving it. Todo:
I'll try to finish that as fast as possible. For now please use test images from https://github.com/KwadFan/MainsailOS-dev/actions/runs/11212635550 Regards Kwad |
I see you have a PR now. the checkboxs are done yet or perhaps better to move them there? |
Will be a while until I can take a look, I currently have my hands extremely full with other stuff. |
* Since RPI nor Armbian have a possibility to change (WiFi) networks after initial flash, adding a solution that it makes it possible to generate a new 'preconfigured.nmconnection' (this one is generated by rpi-imager) * As discussed here #219 Signed-off-by: Stephan Wendel <[email protected]>
* Since RPI nor Armbian have a possibility to change (WiFi) networks after initial flash, adding a solution that it makes it possible to generate a new 'preconfigured.nmconnection' (this one is generated by rpi-imager) * As discussed here #219 Signed-off-by: Stephan Wendel <[email protected]>
* Since RPI nor Armbian have a possibility to change (WiFi) networks after initial flash, adding a solution that it makes it possible to generate a new 'preconfigured.nmconnection' (this one is generated by rpi-imager) * As discussed here #219 Signed-off-by: Stephan Wendel <[email protected]>
In bookworm Raspberry Foundation/Ltd has removed wpa-suppilcant and switched to NetworkManger
In the network module we add a way to headless configure wpa-supplicant.
This is where its done in the network module:
https://github.com/guysoft/CustomPiOS/blob/devel/src/modules/network/start_chroot_script#L36
This is the issue on Rpi:
raspberrypi/bookworm-feedback#72
This is a related issue in FullPageOS:
guysoft/FullPageOS#570
What I think should be done is perhaps have an if statement depending on the distribution version, and use the solution here for bookworm, and perhaps add a symlnink from the old file. Open to other suggestions.
Might take me time to implement because I am busy theses days.
The text was updated successfully, but these errors were encountered: