[initcpiocfg] rework swap_uuid statement and filesystem hook
This commit is contained in:
parent
453e760709
commit
1fe27effe5
@ -134,6 +134,8 @@ def modify_mkinitcpio_conf(partitions, root_mount_point):
|
|||||||
hooks.append("plymouth")
|
hooks.append("plymouth")
|
||||||
|
|
||||||
for partition in partitions:
|
for partition in partitions:
|
||||||
|
hooks.extend(["filesystems"])
|
||||||
|
|
||||||
if partition["fs"] == "linuxswap" and not partition.get("claimed", None):
|
if partition["fs"] == "linuxswap" and not partition.get("claimed", None):
|
||||||
# Skip foreign swap
|
# Skip foreign swap
|
||||||
continue
|
continue
|
||||||
@ -174,11 +176,9 @@ def modify_mkinitcpio_conf(partitions, root_mount_point):
|
|||||||
hooks.append("lvm2")
|
hooks.append("lvm2")
|
||||||
|
|
||||||
if swap_uuid != "":
|
if swap_uuid != "":
|
||||||
|
hooks.extend(["resume"])
|
||||||
if encrypt_hook and openswap_hook:
|
if encrypt_hook and openswap_hook:
|
||||||
hooks.extend(["openswap"])
|
hooks.extend(["openswap"])
|
||||||
hooks.extend(["resume", "filesystems"])
|
|
||||||
else:
|
|
||||||
hooks.extend(["filesystems"])
|
|
||||||
|
|
||||||
if btrfs and not is_cpu_intel:
|
if btrfs and not is_cpu_intel:
|
||||||
modules.append("crc32c")
|
modules.append("crc32c")
|
||||||
|
Loading…
Reference in New Issue
Block a user