mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
[grubcfg] Use own swap
- In situations where there are more swap partitions, only use partitions this install "owns".
This commit is contained in:
parent
5247c13f98
commit
50161cdab9
1 changed files with 6 additions and 0 deletions
|
@ -80,6 +80,9 @@ def modify_grub_default(partitions, root_mount_point, distributor):
|
|||
|
||||
if have_dracut:
|
||||
for partition in partitions:
|
||||
if partition["fs"] == "linuxswap" and not partition.get("claimed", None):
|
||||
# Skip foreign swap
|
||||
continue
|
||||
has_luks = "luksMapperName" in partition
|
||||
if partition["fs"] == "linuxswap" and not has_luks:
|
||||
swap_uuid = partition["uuid"]
|
||||
|
@ -94,6 +97,9 @@ def modify_grub_default(partitions, root_mount_point, distributor):
|
|||
]
|
||||
else:
|
||||
for partition in partitions:
|
||||
if partition["fs"] == "linuxswap" and not partition.get("claimed", None):
|
||||
# Skip foreign swap
|
||||
continue
|
||||
has_luks = "luksMapperName" in partition
|
||||
if partition["fs"] == "linuxswap" and not has_luks:
|
||||
swap_uuid = partition["uuid"]
|
||||
|
|
Loading…
Add table
Reference in a new issue