Merge pull request #2341 from vlinkz/luksswapmount
Fix mounting encrypted swap partition
This commit is contained in:
commit
408cc5a5cf
@ -345,7 +345,8 @@ def run():
|
|||||||
_("No partitions are defined for <pre>{!s}</pre> to use.").format("mount"))
|
_("No partitions are defined for <pre>{!s}</pre> to use.").format("mount"))
|
||||||
|
|
||||||
# Find existing swap partitions that are part of the installation and enable them now
|
# Find existing swap partitions that are part of the installation and enable them now
|
||||||
swap_devices = [p["device"] for p in partitions if (p["fs"] == "linuxswap" and p.get("claimed", False))]
|
swap_devices = [p["device"] for p in partitions if (p["fs"] == "linuxswap" and p.get("claimed", False) and p["fsName"] == "linuxswap")] \
|
||||||
|
+ ["/dev/mapper/" + p["luksMapperName"] for p in partitions if (p["fs"] == "linuxswap" and p.get("claimed", False) and (p["fsName"] == "luks" or p["fsName"] == "luks2"))]
|
||||||
|
|
||||||
enable_swap_partition(swap_devices)
|
enable_swap_partition(swap_devices)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user