Skip to content

Commit

Permalink
Merge pull request vyos#3592 from zdc/T6453-circinus
Browse files Browse the repository at this point in the history
grub: T6453: Fixed GRUB variables parsing
  • Loading branch information
dmbaturin authored Jun 7, 2024
2 parents e3a04ea + d3acecd commit a79c094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/vyos/system/grub.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
BOOT_OPTS_STEM: str = 'boot=live rootdelay=5 noautologin net.ifnames=0 biosdevname=0 vyos-union=/boot/'

# prepare regexes
REGEX_GRUB_VARS: str = r'^set (?P<variable_name>.+)=[\'"]?(?P<variable_value>.*)(?<![\'"])[\'"]?$'
REGEX_GRUB_VARS: str = r'^set (?P<variable_name>\w+)=[\'"]?(?P<variable_value>.*)(?<![\'"])[\'"]?$'
REGEX_GRUB_MODULES: str = r'^insmod (?P<module_name>.+)$'
REGEX_KERNEL_CMDLINE: str = r'^BOOT_IMAGE=/(?P<boot_type>boot|live)/((?P<image_version>.+)/)?vmlinuz.*$'
REGEX_GRUB_BOOT_OPTS: str = r'^\s*set boot_opts="(?P<boot_opts>[^$]+)"$'
Expand Down

0 comments on commit a79c094

Please sign in to comment.