Skip to content
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

Adding atomic distro support #96

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Adding atomic distro support #96

wants to merge 4 commits into from

Conversation

butu
Copy link

@butu butu commented Jan 18, 2025

Hi,

I worked through the installation script and found a way to install everything so fw-fanctrl also works on atomic distros!
Basically I introduced a few new path variables, which are overriden when setting the --atomic argument.

So to install fw-fanctrl on an atomic distro, you would call sudo ./install.sh --atomic.

I tested and am using this on Bluefin. So it should work on any Silverblue Distro.
I tested the default installation in a distrobox only, and I think everything still works for standard distros.

I am quite new to atomic distros, so I am not 100% sure that this is the best way to do this. Any feedback welcome, I am happy to make some changes! :

@butu
Copy link
Author

butu commented Jan 18, 2025

#92 this is a possible solution for this issue!

@leopoldhub
Copy link
Collaborator

Hi @butu,

Thank you for your time and contribution!

Due to my lack of knowledge about atomic distros, I would like to wait for a double confirmation before merging this PR once it seems ready.

In the meantime, here is some feedback.
Feel free to ask if you have any questions.

I would also like to know your opinion on PR #94 (the installation part of it), and if it would cause any problems for an atomic installation.

Have a nice day.

@leopoldhub leopoldhub added the enhancement New feature or request label Jan 20, 2025
@butu
Copy link
Author

butu commented Jan 20, 2025

Hi @butu,

Thank you for your time and contribution!

Due to my lack of knowledge about atomic distros, I would like to wait for a double confirmation before merging this PR once it seems ready.

Oh absolutely!

In the meantime, here is some feedback. Feel free to ask if you have any questions.

I would also like to know your opinion on PR #94 (the installation part of it), and if it would cause any problems for an atomic installation.

Ah, I will try this one!

Have a nice day.

As well and thank you!

Comment on lines +92 to +94
BIN_DIR="/var/usrlocal/bin"
CONF_DIR="/etc"
LIB_DIR="/etc"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I am not an atomic distribution specialist, but I think these absolute paths can change depending on the os/user configuration.
I think it might be better to let the user (or packaging solution) define them instead (in a similar way to "DEST_DIR", "PREFIX_DIR"...).
e.g. adding a "lib-dir" option that overrides the "$DEST_DIR$PREFIX_DIR/lib" default when set (to be defined).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants