vlist_for_each_element(&mounts, m, node) {
if (m->type != TYPE_SWAP)
continue;
- if (uuid && m->uuid && !strcmp(m->uuid, uuid))
+ if (uuid && m->uuid && !strcasecmp(m->uuid, uuid))
return m;
if (label && m->label && !strcmp(m->label, label))
return m;
vlist_for_each_element(&mounts, m, node) {
if (m->type != TYPE_MOUNT)
continue;
- if (m->uuid && uuid && !strcmp(m->uuid, uuid))
+ if (m->uuid && uuid && !strcasecmp(m->uuid, uuid))
return m;
if (m->label && label && !strcmp(m->label, label))
return m;
if (uuid)
list_for_each_entry(pr, &devices, list)
- if (!strcmp(pr->uuid, uuid))
+ if (!strcasecmp(pr->uuid, uuid))
return pr;
if (label)
fgets(uuid, sizeof(uuid), fp);
fclose(fp);
- if (!strcmp(uuid, pr->uuid))
+ if (!strcasecmp(uuid, pr->uuid))
return 0;
ERROR("extroot: uuid tag does not match rom uuid\n");
}