(Backport 51956) blockdev: hide blkid errors when are expected #54998
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
The function _checkblk is called to detect if the device is already
formatted. The first time that we call blkid -o value -s TYPE will
will fail, as the device is still not formatted.
This patch hide this error from the logs (only the ERROR status,
not the stderr output and the retcode), as is an expected error.
Tests written?
No, no change in behavior
(backport #51956, already merged in develop)