-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
Use usr/local/bin instead of usr/bin for Silverblue and other immutable OSs #460
Conversation
Great stuff and thank you for your contribution! |
For future references: This should make it also compatible with OpenSUSE MicroOS and other immutable operating systems. |
Great work. |
@gimbles while reviewing #459 I noticed a particular regression introduced with this PR. Namely, prior to these changes if you perform an install auto-cpufreq with
However, after these changes have been merged if you do the same steps as mentioned above, you'll only be presented with:
I'd really like if same more verbose removal output was brought back as it gives more clarity to user on what happened. Can you please create a new PR for this? Thank you |
I don't really have an idea on why this regression is caused. I didn't even touch the installer, just replaced a few paths in core.py |
@gimbles I know, I'm also baffled myself. But have tracked it down where d77c1de commit (one before these changes were merged) doesn't have this behavior. @SunkenHero can you confirm if you have this problem as well? |
The installer script just evaluates and runs If this test fails, then it's likely that nothing is removed and the function silently goes on to print This would also explain the lack of messages. We should add a check in the installer to see if the test is successful or not, which would also help in debugging this particular issue. So something like this:
|
@abvee please give it a try and needless to say create a PR if you're successful :) |
I have some code, but I'm a bit lost on what to do with it. It's my first time actually contributing to a repository, so I'm not sure what best practice here is..... do I make a fork of @gimbles repository or just a new branch and PR on my own fork that includes my installer changes ? |
But what about the changes I have made to the installer in #459 that have not been merged yet ? Do I modify the original install script and let you do the merging ? Sorry for all the unrelated questions, couldn't find any proper answers on google :( |
Don't worry about it, I'll merge it as soon as this regression has been fixed. Reason why I didn't merge it yet is I'm trying to reduce entropy around this issue. |
* Added an error message when the file isn't found * $srv_install and $srv_remove are now at new locations Created _old variables to keep track of old locations * Added exit statement and specified daemon not removed * Fixed some errors
Fixes #394