Don't use f-strings yet.

This commit is contained in:
Chrysostomus 2021-02-07 15:39:38 +02:00
parent 0c92a36a53
commit 16eff98a06

View File

@ -104,13 +104,13 @@ 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 = "subvol={}".format(s['subvolume'])
subvolume_mountpoint = mount_point[:-1] + s['mountPoint'] subvolume_mountpoint = mount_point[:-1] + s['mountPoint']
if libcalamares.utils.mount(device, if libcalamares.utils.mount(device,
subvolume_mountpoint, 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("Cannot mount {}".format(device))
def run(): def run():