IS_DUPLICATE_FS_LABEL: blkid has a cache that can provoke false positive #124

Manually merged
benpro merged 3 commits from IS_DUPLICATE_FS_LABEL-blkid-fix into master 2020-06-26 08:51:45 +02:00

3 commits

Author SHA1 Message Date
Benoît S. eea3e4b36e Merge branch 'master' into IS_DUPLICATE_FS_LABEL-blkid-fix
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2020-06-26 08:50:58 +02:00
Benoît S. fdaa5ed0ab IS_DUPLICATE_FS_LABEL: Update changelog
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2020-06-26 15:49:38 +09:00
Benoît S. 652fcdbe44 IS_DUPLICATE_FS_LABEL: blkid has a cache that can provoke false positive
Disable the cache by using `-c /dev/null`.

Example of false positive:

```
/dev/mapper/HDD0-swap2: LABEL="SWAP2" UUID="5540a49e-3e7b-4528-9c4e-49fb5f8d7f3d" TYPE="swap"
/dev/dm-0: LABEL="SWAP2" UUID="5540a49e-3e7b-4528-9c4e-49fb5f8d7f3d" TYPE="swap"
```

`dm-0` may have been cached during boot time, if you don't use a cache,
it doesn't appear any more.
2020-06-26 15:49:30 +09:00