b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | --- a/block.c |
2 | +++ b/block.c | ||||
3 | @@ -568,8 +568,10 @@ static int _cache_load(const char *path) | ||||
4 | |||||
5 | for (j = 0; j < gl.gl_pathc; j++) { | ||||
6 | struct probe_info *pr = _probe_path(gl.gl_pathv[j]); | ||||
7 | - if (pr) | ||||
8 | - list_add_tail(&pr->list, &devices); | ||||
9 | + if (pr) { | ||||
10 | + if (!pr->label || strcmp(pr->label, "oemdata")) | ||||
11 | + list_add_tail(&pr->list, &devices); | ||||
12 | + } | ||||
13 | } | ||||
14 | |||||
15 | globfree(&gl); |