[initcpiocfg] Add support for zfs
This commit is contained in:
parent
11bf84bac7
commit
76892136cf
@ -150,6 +150,7 @@ def find_initcpio_features(partitions, root_mount_point):
|
||||
|
||||
swap_uuid = ""
|
||||
uses_btrfs = False
|
||||
uses_zfs = False
|
||||
uses_lvm2 = False
|
||||
encrypt_hook = False
|
||||
openswap_hook = False
|
||||
@ -172,6 +173,9 @@ def find_initcpio_features(partitions, root_mount_point):
|
||||
if partition["fs"] == "btrfs":
|
||||
uses_btrfs = True
|
||||
|
||||
if partition["fs"] == "zfs":
|
||||
uses_zfs = True
|
||||
|
||||
if "lvm2" in partition["fs"]:
|
||||
uses_lvm2 = True
|
||||
|
||||
@ -198,6 +202,9 @@ def find_initcpio_features(partitions, root_mount_point):
|
||||
if uses_lvm2:
|
||||
hooks.append("lvm2")
|
||||
|
||||
if uses_zfs:
|
||||
hooks.append("zfs")
|
||||
|
||||
if swap_uuid != "":
|
||||
if encrypt_hook and openswap_hook:
|
||||
hooks.extend(["openswap"])
|
||||
|
Loading…
Reference in New Issue
Block a user