[initcpiocfg] add usr hook if partition is separate

This commit is contained in:
Philip Müller 2019-12-16 09:40:54 +01:00
parent 0e7982ec37
commit 85d3f9e9b9

View File

@ -144,6 +144,9 @@ def modify_mkinitcpio_conf(partitions, root_mount_point):
and "luksMapperName" not in partition):
unencrypted_separate_boot = True
if partition["mountPoint"] == "/usr":
hooks.append("usr")
if encrypt_hook:
hooks.append("encrypt")
if not unencrypted_separate_boot and \