[fstab] Add comment explaining logic

This commit is contained in:
dalto 2021-11-26 13:00:30 -06:00
parent df3e049e1c
commit 6b838bbf3d

View File

@ -236,6 +236,7 @@ class FstabGenerator(object):
libcalamares.utils.debug("Ignoring foreign swap {!s} {!s}".format(disk_name, partition.get("uuid", None))) libcalamares.utils.debug("Ignoring foreign swap {!s} {!s}".format(disk_name, partition.get("uuid", None)))
return None return None
# If this is btrfs subvol a dedicated to a swapfile, use different options than a normal btrfs subvol
if filesystem == "btrfs" and partition["subvol"] == "/@swap": if filesystem == "btrfs" and partition["subvol"] == "/@swap":
options = self.get_mount_options("btrfs_swap", mount_point) options = self.get_mount_options("btrfs_swap", mount_point)
else: else: