mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
Make sure we write the kernel config line anyway.
This commit is contained in:
parent
41e7a9ae3c
commit
a977b1ea40
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue