Merge pull request #2051 from CachyOS/calamares

fix initcpiocfg filesystems loop
This commit is contained in:
dalto8 2022-09-25 12:06:24 +00:00 committed by GitHub
commit 831cfb57b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,8 +169,6 @@ def find_initcpio_features(partitions, root_mount_point):
hooks.append("plymouth")
for partition in partitions:
hooks.extend(["filesystems"])
if partition["fs"] == "linuxswap" and not partition.get("claimed", None):
# Skip foreign swap
continue
@ -218,9 +216,11 @@ def find_initcpio_features(partitions, root_mount_point):
hooks.append("zfs")
if swap_uuid != "":
hooks.extend(["resume"])
if encrypt_hook and openswap_hook:
hooks.extend(["openswap"])
hooks.extend(["resume", "filesystems"])
else:
hooks.extend(["filesystems"])
if uses_btrfs:
modules.append("crc32c-intel" if cpuinfo().is_intel else "crc32c")