Fix pre-mounted Btrfs subvolumes root detection (#3014)

This commit is contained in:
codefiles 2024-12-08 18:38:16 -05:00 committed by GitHub
parent 4592280baa
commit 3716df9bb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ class DeviceHandler:
# expected output format:
# ID 257 gen 8 top level 5 path @home
name = Path(line.split(' ')[-1])
sub_vol_mountpoint = btrfs_subvol_info.get(name, None)
sub_vol_mountpoint = btrfs_subvol_info.get('/' / name, None)
subvol_infos.append(_BtrfsSubvolumeInfo(name, sub_vol_mountpoint))
if not lsblk_info.mountpoint: