snap: skip /dev/ram from auto-import assertions to make it less noisy #3010

Merged
merged 6 commits into from Apr 13, 2017
@@ -84,6 +84,10 @@ func autoImportCandidates() ([]string, error) {
if strings.HasPrefix(mountSrc, "/dev/loop") {
continue
}
+ // skip all ram disks (unless in tests)
+ if !osutil.GetenvBool("SNAPPY_TESTING") && strings.HasPrefix(mountSrc, "/dev/ram") {
+ continue
+ }
mountPoint := l[4]
cand := filepath.Join(mountPoint, autoImportsName)