Allow installing grub on an encrypted fs.
This commit is contained in:
parent
beb16a77f0
commit
db9454d199
@ -135,6 +135,9 @@ def modify_grub_default(partitions, root_mount_point, distributor):
|
||||
if not have_distributor_line:
|
||||
lines.append(distributor_line)
|
||||
|
||||
if cryptdevice_params:
|
||||
lines.append("GRUB_ENABLE_CRYPTODISK=y")
|
||||
|
||||
with open(default_grub, 'w') as grub_file:
|
||||
grub_file.write("\n".join(lines) + "\n")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user