One more have_dracut check (thanks to @crazy)

This commit is contained in:
Adriaan de Groot 2017-09-05 03:39:34 -04:00 committed by Philip
parent 633f70e93e
commit 3ef23344c3

View File

@ -91,7 +91,7 @@ def modify_grub_default(partitions, root_mount_point, distributor):
if swap_uuid: if swap_uuid:
kernel_params.append("resume=UUID={!s}".format(swap_uuid)) kernel_params.append("resume=UUID={!s}".format(swap_uuid))
if dracut_bin == 0 and swap_outer_uuid: if have_dracut and swap_outer_uuid:
kernel_params.append("rd.luks.uuid={!s}".format(swap_outer_uuid)) kernel_params.append("rd.luks.uuid={!s}".format(swap_outer_uuid))
distributor_line = "GRUB_DISTRIBUTOR='{!s}'".format(distributor_replace) distributor_line = "GRUB_DISTRIBUTOR='{!s}'".format(distributor_replace)