Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-10-30 17:22:21 +0200
committerAnton Hvornum <anton@hvornum.se>2021-10-30 17:22:21 +0200
commit9f9c637bfd2e9c8aff3e8fb0777db4e56d5ceedd (patch)
treeeea9c099e5acf7da5eab3a5c9fecf7288ef2cf5c
parent3ee1a5c18e4bf248b54e8da9be6a88cfe042a2b9 (diff)
Fixes tuple issue
-rw-r--r--archinstall/lib/disk/btrfs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/archinstall/lib/disk/btrfs.py b/archinstall/lib/disk/btrfs.py
index a71fb1f4..4fe890e5 100644
--- a/archinstall/lib/disk/btrfs.py
+++ b/archinstall/lib/disk/btrfs.py
@@ -32,12 +32,12 @@ def mount_subvolume(installation, subvolume_location :Union[pathlib.Path, str],
log(f"Mounting {target} as a subvolume", level=logging.INFO)
# Mount the logical volume to the physical structure
- mountpoint_device, mountpoint_device_real_path = get_mount_info(target, traverse=True, return_real_path=True)['source']
+ mount_information, mountpoint_device_real_path = get_mount_info(target, traverse=True, return_real_path=True)
if mountpoint_device_real_path == str(target):
- log(f"Unmounting non-subvolume {mountpoint_device} previously mounted at {target}")
- SysCommand(f"umount {mountpoint_device}")
+ log(f"Unmounting non-subvolume {mount_information['source']} previously mounted at {target}")
+ SysCommand(f"umount {mount_information['source']}")
- return SysCommand(f"mount {mountpoint_device} {target} -o subvol=@{subvolume_location}").exit_code == 0
+ return SysCommand(f"mount {mount_information['source']} {target} -o subvol=@{subvolume_location}").exit_code == 0
def create_subvolume(installation, location :Union[pathlib.Path, str]) -> bool:
"""