diff --git a/src/modules/grubcfg/main.py b/src/modules/grubcfg/main.py index b6d06d0a8..eef731bcc 100644 --- a/src/modules/grubcfg/main.py +++ b/src/modules/grubcfg/main.py @@ -87,7 +87,7 @@ def modify_grub_default(partitions, root_mount_point, distributor): for existing_param in existing_params: existing_param_name = existing_param.split("=")[0] - if existing_param_name not in ["quiet", "resume", "splash"]: #the only ones we ever add + if existing_param_name not in ["quiet", "resume", "splash"]: # the only ones we ever add kernel_params.append(existing_param) kernel_cmd = "GRUB_CMDLINE_LINUX_DEFAULT=\"{!s}\"".format(" ".join(kernel_params)) @@ -110,6 +110,7 @@ def modify_grub_default(partitions, root_mount_point, distributor): lines.append("{!s}=\"{!s}\"".format(key, escaped_value)) if not have_kernel_cmd: + kernel_cmd = "GRUB_CMDLINE_LINUX_DEFAULT=\"{!s}\"".format(" ".join(kernel_params)) lines.append(kernel_cmd) if not have_distributor_line: