summaryrefslogtreecommitdiffstats
path: root/discover/udev.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javierm@redhat.com>2018-06-12 12:18:34 +0200
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-06-18 10:56:33 +1000
commit78a98b9ebc789d9c9c701af95e65292d768eee59 (patch)
tree9a3664761d2a27c65572053ffb9380071c8cd1d2 /discover/udev.c
parent6d06f0dbe1195cd8be7d3c54d02012ff16466d0c (diff)
downloadtalos-petitboot-78a98b9ebc789d9c9c701af95e65292d768eee59.tar.gz
talos-petitboot-78a98b9ebc789d9c9c701af95e65292d768eee59.zip
discover/grub: Improve BLS grub environment variables expansion
The fields from a BootLoaderSpec file can contain environment variables, in GRUB 2 these are show verbatim and are evaluated later when an entry is selected. But on Petitboot these have to be expanded before creating the GRUB 2 resources and show in the UI the values after the evaluation. The current blscfg handler had a very limited support for variables, it only had support for the options field and also didn't take into account that variables could be mixed with literal values. So for example the following fields were not expanded correctly: linux $bootprefix/vmlinuz options $kernelopts foo=bar options foo=bar $kernelopts options $kernelopts $debugopts Also change some of the tests to cover mixing variables and literals. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/udev.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud