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

View File

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