Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Improve detection of nvidia driver on Ubuntu #129
Conversation
zyga
added some commits
Sep 9, 2016
|
Looks fine! |
mvo5
reviewed
Sep 9, 2016
| +{ | ||
| + FILE *file __attribute__ ((cleanup(sc_cleanup_file))) = NULL; | ||
| + debug("opening file describing nvidia driver version"); | ||
| + file = fopen(SC_NVIDIA_DRIVER_VERSION_FILE, "rt"); |
mvo5
Sep 9, 2016
Contributor
Maybe make this look at an environment variable so that you can mock it in the tests?
zyga
Sep 9, 2016
Collaborator
Yeah, this begs for some more testability. I'm working on improvements but I'd like to land it so that we can release it quickly as well.
zyga
merged commit ae66cb9
into
master
Sep 9, 2016
1 check passed
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
zyga
deleted the
nvidia-probing
branch
Sep 9, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zyga commentedSep 9, 2016
This branch improves the detection of the nvidia driver on Ubuntu systems. Snap confine now reads /sys/module/nvidia/version and uses it to determine the appropriate version of the kernel driver.
This avoids the ambiguity where multiple directories may be present at a given time.
Fixes: https://bugs.launchpad.net/snap-confine/+bug/1615248
Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@canonical.com