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

Install udev rules #1

Open
Tobias-Fischer opened this issue Jun 24, 2021 · 4 comments
Open

Install udev rules #1

Tobias-Fischer opened this issue Jun 24, 2021 · 4 comments

Comments

@Tobias-Fischer
Copy link
Contributor

Installation is currently disabled

@wolfv - any ideas how to deal with that? If I remember correctly you had some thoughts on how to do that in conda-forge.

@wolfv
Copy link
Member

wolfv commented Jun 24, 2021

Hmm... the only way would be via post-link script right now. You can execute arbitrary commands with a post link script (and post-unlink script). This script could create a /etc/udev/rules.d/10-conda-libcaer.rules file

@Tobias-Fischer
Copy link
Contributor Author

But don't you need root permissions for creating these files? How would that work?

@wolfv
Copy link
Member

wolfv commented Jun 25, 2021

Right, you'd need root permissions. It's probably possible to make the post link script ask the User if the installation is wanted.

Otherwise we could add a small helper script in $PREFIX/bin/install_udev.sh and explain users that they'll have to run that after installation

@wolfv
Copy link
Member

wolfv commented Jun 25, 2021

Or we make a conda-wide plugin where udev rules added in $PREFIX/udev/* are automatically installed & removed -- but that would take work in mamba or conda to achieve (conda is looking to add plugin support and we'd like to do the same in mamba)

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

No branches or pull requests

2 participants