]> git.ipfire.org Git - thirdparty/systemd.git/commit
efi-string: Unquote single-quoted strings as well as double
authorJames Le Cuirot <jlecuirot@microsoft.com>
Tue, 27 Jan 2026 17:12:34 +0000 (17:12 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 4 Feb 2026 14:58:06 +0000 (23:58 +0900)
commita8f2f5d71786c2cf36e32f856cc329413a76cd93
tree8f1c0c5e103b0229543aa4d0d3cd1799709111d2
parentb3d73bc68ee071a9a67caad3d0c47d3725230fe6
efi-string: Unquote single-quoted strings as well as double

This code is used to read data copied from /etc/os-release. According to
the spec[1], values can be enclosed in single quotes or double quotes.
Not handling single quotes results in the quotes appearing in the
systemd-boot menu, e.g. 'Gentoo Linux'.

[1] https://www.freedesktop.org/software/systemd/man/latest/os-release.html

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
src/boot/efi-string.c