Fix bug with online resizing btrfs filesystems having non-default subvol

```
Command 'losetup -c /dev/loop0[/default]' returned non-zero exit status 1.
```
This commit is contained in:
Mehran Kholdi 2021-03-01 13:40:06 +03:30
parent 5dc8afc0a6
commit fd2e59929b
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ def dev_to_mountpoint(dev_name):
def mountpoint_to_dev(mountpoint):
res = subprocess.run(
f"findmnt --json --first-only --mountpoint {mountpoint}",
f"findmnt --json --first-only --nofsroot --mountpoint {mountpoint}",
shell=True,
capture_output=True,
)