[initcpio] add usr hook as needed

This commit is contained in:
Philip Müller 2019-12-06 08:28:42 +01:00
parent 93883ef27f
commit d385752155

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 \