Allow installing grub on an encrypted fs.

This commit is contained in:
Teo Mrnjavac 2016-05-05 15:53:54 +02:00
parent beb16a77f0
commit db9454d199

View File

@ -135,6 +135,9 @@ def modify_grub_default(partitions, root_mount_point, distributor):
if not have_distributor_line: if not have_distributor_line:
lines.append(distributor_line) lines.append(distributor_line)
if cryptdevice_params:
lines.append("GRUB_ENABLE_CRYPTODISK=y")
with open(default_grub, 'w') as grub_file: with open(default_grub, 'w') as grub_file:
grub_file.write("\n".join(lines) + "\n") grub_file.write("\n".join(lines) + "\n")