-
Notifications
You must be signed in to change notification settings - Fork 74
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
Fix for Issue 141, check the executing user not the logged in user for root and add missing sudo calls #142
Conversation
root and add missing sudo calls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR shouldn't fix #141 according to the things you described inside the issue, only maybe the sudo -u pi make install
variant and will break other things in return, like kiauh.
I might look into your issue if I get some spare time, but atm this PR won't be approved and will be closed as it will just break things, and changes the current way of installing crowsnest.
Your new make
flag might be a more suited option, but I will have to test and reproduce the issue myself first.
It doesn't seem like you've actually reproduced the error and tested my PR whereas I cannot build with custompios via docker with crowsnest active. |
I already wrote that I didn't try to reproduce your issue. My feedback wasn't about your issue, it was about crowsnest and how it get's installed by default, and that will break with your changes |
As @mryel00 already answered, I'd took a look and he is absolutly right to refuse this PR. Regards Kwad |
I'm not sure if your comment is after reading how @mryel00 and I discussed how to move this forward or if you are not interested in improving this PR. Please clarify so I know if I am going to be productive in contributing to this project or if you're just going to reject the new PR even though you have not tested or tried anything. Your other comment about what SUDO_USER is when compiling via docker/logged in as root is contradicting your own team member's experience. |
About that, I guess you misunderstood the message of kwad inside the conversation. He meant if your SUDO_USER is root, in your current building setup, there is most likely a misconfiguration inside your base module of custompios. I don't know much about custompios, that's why I mainly focused on the installation problems occuring outside of it, with your changes. kwad and me are both no native english speakers, so there might be some misunderstandings sometimes. Also he wrote inside the conversation that he wants your exact setup, so the base image, every module and so on that you are using, that we can see if you just made a mistake maybe, and that we can reproduce it. |
here's the pi image i'm building https://github.com/mitant/RatOS Note: the HEAD does not have any of my changes to use the new PR stuff, so if you build in docker using custompios instructions, you should see the failure I was seeing. I have some uncommited changes I have not pushed, but the changes are to point to my fork and to call sudo -u "${BASE_USER}" make install in the crowsnest start_chroot_script. this will be changed to something like make install-docker-custompios to use the new target, if that is going to be acceptable. I'm using the dockerfile as suggested by guysoft/custompios with some small name changes: https://github.com/guysoft/CustomPiOS/wiki/Building-with-Docker `version: '3.6' services: after I start the container I run: this is the error i see:
|
forgot to mention, using this base image |
No description provided.