mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 10:55:37 -04:00
Fix regexp in grubcfg.
CAL-205 #comment Done some fixing, please retest when you can.
This commit is contained in:
parent
a977b1ea40
commit
debd4bc352
1 changed files with 5 additions and 5 deletions
|
@ -77,12 +77,12 @@ def modify_grub_default(partitions, root_mount_point, distributor):
|
||||||
lines[i] = kernel_cmd
|
lines[i] = kernel_cmd
|
||||||
have_kernel_cmd = True
|
have_kernel_cmd = True
|
||||||
elif lines[i].startswith("GRUB_CMDLINE_LINUX_DEFAULT"):
|
elif lines[i].startswith("GRUB_CMDLINE_LINUX_DEFAULT"):
|
||||||
regex = re.compile(r"^GRUB_CMDLINE_LINUX_DEFAULT.*=")
|
regex = re.compile(r"^GRUB_CMDLINE_LINUX_DEFAULT\s*=\s*\"")
|
||||||
line = regex.sub("", lines[i])
|
line = regex.sub("", lines[i])
|
||||||
line.lstrip()
|
line = line.lstrip()
|
||||||
line.lstrip("\"")
|
line = line.lstrip("\"")
|
||||||
line.rstrip()
|
line = line.rstrip()
|
||||||
line.rstrip("\"")
|
line = line.rstrip("\"")
|
||||||
existing_params = line.split()
|
existing_params = line.split()
|
||||||
|
|
||||||
for existing_param in existing_params:
|
for existing_param in existing_params:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue