Merge branch 'fix-is-tegra-check' into 'main'

Fix bug in tegra detection

See merge request nvidia/container-toolkit/container-toolkit!157
This commit is contained in:
Evan Lezar 2022-05-23 08:00:09 +00:00
commit 52ce97929c
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
## v1.10.0-rc.3 ## v1.10.0-rc.3
* Fix bug in detection of Tegra systems where `/sys/devices/soc0/family` is ignored
* Fix bug where links to devices were detected as devices * Fix bug where links to devices were detected as devices
* [libnvida-container] Fix bug introduced when adding libcudadebugger.so to list of libraries * [libnvida-container] Fix bug introduced when adding libcudadebugger.so to list of libraries

View File

@ -48,8 +48,8 @@ func IsTegraSystem() (bool, string) {
return true, fmt.Sprintf("%v found", tegraReleaseFile) return true, fmt.Sprintf("%v found", tegraReleaseFile)
} }
if info, err := os.Stat(tegraFamilyFile); err != nil || !info.IsDir() { if info, err := os.Stat(tegraFamilyFile); err != nil || info.IsDir() {
return false, fmt.Sprintf("%v not found", tegraFamilyFile) return false, fmt.Sprintf("%v file not found", tegraFamilyFile)
} }
contents, err := os.ReadFile(tegraFamilyFile) contents, err := os.ReadFile(tegraFamilyFile)