One more have_dracut check (thanks to @crazy)

This commit is contained in:
Adriaan de Groot 2017-09-05 03:39:34 -04:00
parent 360a114ed4
commit ec265c073a

View File

@ -91,7 +91,7 @@ def modify_grub_default(partitions, root_mount_point, distributor):
if 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))
distributor_line = "GRUB_DISTRIBUTOR='{!s}'".format(distributor_replace)