mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
[fstab] Avoid KeyError when no subvol is set (from dalto8)
This commit is contained in:
parent
c22bbea528
commit
ceb9ec4115
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ class FstabGenerator(object):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
# If this is btrfs subvol a dedicated to a swapfile, use different options than a normal btrfs subvol
|
# 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.get("subvol", None) == "/@swap":
|
||||||
options = self.get_mount_options("btrfs_swap", mount_point)
|
options = self.get_mount_options("btrfs_swap", mount_point)
|
||||||
else:
|
else:
|
||||||
options = self.get_mount_options(filesystem, mount_point)
|
options = self.get_mount_options(filesystem, mount_point)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue