]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: don't mark cache as "probed" if /sys not available
authorKarel Zak <kzak@redhat.com>
Fri, 19 Nov 2021 13:19:03 +0000 (14:19 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 19 Nov 2021 13:19:03 +0000 (14:19 +0100)
commit84d38ae3eca523ef990cb848563cc63de25266e6
treedc74b7874acb31ca48780ffedfd730720c5d1cd4
parent93c53207c08d044bddae7b9d559c80affbd449c6
libblkid: don't mark cache as "probed" if /sys not available

For "mount --all" we need to read the cache more than once in a short
time. The library checks the delay between probes, and if the delay is
too short, it does not read devices. This is a problem on boot when there
are no /sys, and the cache is empty. In this case, we need to check
for /sys until it's available constantly.

https://github.com/util-linux/util-linux/issues/1492
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/devname.c
libblkid/src/resolve.c
libblkid/src/tag.c