-
Notifications
You must be signed in to change notification settings - Fork 37
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
Conversation
cb05841
to
b6239bd
Compare
upon request as further changes has been noticed to be needed
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.
do not approve yet, on further look the existing logic is also broken and needs revision
Head branch was pushed to by a user without write access
build/ublue-os-just/40-nvidia.just
Outdated
echo "Proprietary nvidia drivers are already enabled." | ||
exit 0 | ||
else | ||
NEW_IMAGE=${CURRENT_IMAGE/-main/-nvidia} |
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 will not work on bluefin and bazzite since we do not have -main
images there and future downstreams might not have it either
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.
@HikariKnight true, I'm open to suggestions here.
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.
@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.
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.
@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.
closing as needs further thinking |
#223