Skip to content

Commit

Permalink
Merge pull request #1205 from vojtechtrefny/3.9-devel_fix-btrfs-mount…
Browse files Browse the repository at this point in the history
…point-check

Fix getting subvolumes for mounted btrfs volumes
  • Loading branch information
vojtechtrefny authored Mar 6, 2024
2 parents 94adfec + afa9184 commit e0b33c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blivet/devices/btrfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def _get_any_btrfs_mountpoint(self):

# now try every possible mountpoint with any subvolspec in our cache
parents = [p.name for p in self.parents]
mount_spec = next(((dev, subvol) for dev, subvol in mounts_cache.mountpoints if dev in parents), None)
mount_spec = next(((dev, subvol) for dev, subvol in mounts_cache.mountpoints if udev.resolve_devspec(dev) in parents), None)
if mount_spec:
try:
return mounts_cache.get_mountpoints(devspec=mount_spec[0],
Expand Down

0 comments on commit e0b33c9

Please sign in to comment.