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

feat: improve toggle-nvidia just command #245

Closed
wants to merge 1 commit into from

Conversation

RoyalOughtness
Copy link
Contributor

@RoyalOughtness RoyalOughtness force-pushed the main branch 3 times, most recently from cb05841 to b6239bd Compare April 5, 2024 23:45
HikariKnight
HikariKnight previously approved these changes Apr 5, 2024
@HikariKnight HikariKnight enabled auto-merge April 5, 2024 23:51
@HikariKnight HikariKnight dismissed their stale review April 6, 2024 01:34

upon request as further changes has been noticed to be needed

Copy link
Contributor Author

@RoyalOughtness RoyalOughtness left a comment

Choose a reason for hiding this comment

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

do not approve yet, on further look the existing logic is also broken and needs revision

auto-merge was automatically disabled April 6, 2024 17:44

Head branch was pushed to by a user without write access

echo "Proprietary nvidia drivers are already enabled."
exit 0
else
NEW_IMAGE=${CURRENT_IMAGE/-main/-nvidia}
Copy link
Member

Choose a reason for hiding this comment

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

this will not work on bluefin and bazzite since we do not have -main images there and future downstreams might not have it either

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@HikariKnight true, I'm open to suggestions here.

Copy link
Member

@HikariKnight HikariKnight Apr 6, 2024

Choose a reason for hiding this comment

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

@qoijjj dont know a good way to do this other than split the toggle-nvidia part into i guess 41-nvk.just or something and have downstream replace/adjust that file as needed.
that way we dont need to maintain a list of all base images for the check.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@HikariKnight it doesn't really need to be a separate file. downstream images can just sed to replace NEW_IMAGE=${CURRENT_IMAGE/-nvidia/-main} with something else.

@RoyalOughtness
Copy link
Contributor Author

closing as needs further thinking

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

Successfully merging this pull request may close these issues.

2 participants