Merge "nvmeof: Call findmnt with -v"

This commit is contained in:
Zuul 2023-07-21 17:07:17 +00:00 committed by Gerrit Code Review
commit bfb55b7b58
2 changed files with 6 additions and 1 deletions

View File

@ -783,7 +783,7 @@ class NVMeOFConnector(base.BaseLinuxConnector):
def _get_host_uuid(self) -> Optional[str]:
"""Get the UUID of the first mounted filesystem."""
cmd = ('findmnt', '/', '-n', '-o', 'SOURCE')
cmd = ('findmnt', '-v', '/', '-n', '-o', 'SOURCE')
try:
lines, err = self._execute(
*cmd, run_as_root=True, root_helper=self._root_helper)

View File

@ -0,0 +1,5 @@
---
fixes:
- |
NVMe-oF connector `bug #2026257
<https://bugs.launchpad.net/os-brick/+bug/2026257>`_: Fixes _get_host_uuid for nvmeof failing when using a btrfs root fs.