mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
Mount subvolumes to correct mountpoints
This commit is contained in:
parent
b16bd6bb23
commit
6d55005da0
1 changed files with 2 additions and 1 deletions
|
@ -108,8 +108,9 @@ def mount_partition(root_mount_point, partition, partitions):
|
||||||
# Mount the subvolumes
|
# Mount the subvolumes
|
||||||
for s in btrfs_subvolumes:
|
for s in btrfs_subvolumes:
|
||||||
mount_option = f"subvol={s['subvolume']}"
|
mount_option = f"subvol={s['subvolume']}"
|
||||||
|
subvolume_mountpoint = mount_point[:-1] + s['mountPoint']
|
||||||
if libcalamares.utils.mount(device,
|
if libcalamares.utils.mount(device,
|
||||||
mount_point,
|
subvolume_mountpoint,
|
||||||
fstype,
|
fstype,
|
||||||
",".join([mount_option, partition.get("options", "")])) != 0:
|
",".join([mount_option, partition.get("options", "")])) != 0:
|
||||||
libcalamares.utils.warning(f"Cannot mount {device}")
|
libcalamares.utils.warning(f"Cannot mount {device}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue