Compare commits

...

1 Commits

Author SHA1 Message Date
9f6614a18b btrfs: load crc32c module 2025-08-17 15:41:16 +02:00

View File

@@ -127,6 +127,7 @@ def find_initcpio_features(partitions, root_mount_point):
swap_uuid = ""
uses_btrfs = False
uses_bcachefs = False
uses_zfs = False
uses_lvm2 = False
encrypt_hook = False
@@ -150,6 +151,9 @@ def find_initcpio_features(partitions, root_mount_point):
if partition["fs"] == "btrfs":
uses_btrfs = True
if partition["fs"] == "bcachefs":
uses_bcachefs = True
# In addition to checking the filesystem, check to ensure that zfs is enabled
if partition["fs"] == "zfs" and libcalamares.globalstorage.contains("zfsPoolInfo"):
uses_zfs = True
@@ -188,7 +192,9 @@ def find_initcpio_features(partitions, root_mount_point):
else:
hooks.extend(["filesystems"])
if not uses_btrfs:
if uses_btrfs or uses_bcachefs:
modules.append("crc32c")
else:
hooks.append("fsck")
# Modify according to the keys in the configuration