[fstab] Add comment explaining logic
This commit is contained in:
parent
df3e049e1c
commit
6b838bbf3d
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user