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:
parent
5dc8afc0a6
commit
fd2e59929b
@ -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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user