Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
9f6614a18b |
@@ -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
|
||||
|
Reference in New Issue
Block a user