]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ukify: honor UKI/SBAT from config files 42478/head
authorWolfgang Bumiller <w.bumiller@errno.eu>
Thu, 4 Jun 2026 15:07:22 +0000 (17:07 +0200)
committerWolfgang Bumiller <w.bumiller@errno.eu>
Thu, 4 Jun 2026 15:13:03 +0000 (17:13 +0200)
`UkifyConfig.sbat` is an optional list, so the default of
`config_set_if_unset` would only accept a single value.

Further, it is defined with an empty list as a default, causing
configuration values to always be ignored, as the default is not
`None`.

Set its `config_push` to `ConfigItem.config_list_prepend` to collect
the `SBAT` lines from the config.

Signed-off-by: Wolfgang Bumiller <w.bumiller@errno.eu>
src/ukify/ukify.py

index 59078c98aadfbdb116a8400861e8a4708cd1eb06..7e3dd9038cbd7f274ee0237bbc70b8d24729583a 100755 (executable)
@@ -2018,6 +2018,7 @@ CONFIG_ITEMS = [
         default=[],
         action='append',
         config_key='UKI/SBAT',
+        config_push=ConfigItem.config_list_prepend,
     ),
     ConfigItem(
         '--pcrpkey',