Use variable instead of a function

This commit is contained in:
Chrysostomus 2020-12-05 22:57:51 +02:00
parent 0ed0d37693
commit 59cfdcccdf

View File

@ -153,7 +153,7 @@ def modify_mkinitcpio_conf(partitions, root_mount_point):
hooks.append("usr") hooks.append("usr")
if encrypt_hook: if encrypt_hook:
if detect_plymouth() and unencrypted_separate_boot(): if detect_plymouth() and unencrypted_separate_boot:
hooks.append("plymouth-encrypt") hooks.append("plymouth-encrypt")
else: else:
hooks.append("encrypt") hooks.append("encrypt")