]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: if we cannot decode a TPM credential skip over it for ImportCredential=
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Sep 2025 08:37:31 +0000 (10:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Sep 2025 20:11:57 +0000 (22:11 +0200)
commit4be269563db777bb30f2609b3d4f5180fe9e2d2a
tree206179018227c12b6b8b120b240f0e8f20900fbd
parentffd4b3809681b940d7d1fb9bc64502306c0a3e7e
core: if we cannot decode a TPM credential skip over it for ImportCredential=

let's skip over credentials we cannot decode when they are found with
ImportCredential=. When installing an OS on some disk and using that
disk on a different machine than assumed we'll otherwise end up with a
broken boot, because the credentials cannot be decoded when starting
systemd-firstboot. Let's handle this somewhat gracefully.

This leaves handling for LoadCredential=/SetCredential= as it is (i.e.
failure to decrypt results in service failure), because it is a lot more
explicit and focussed as opposed to ImportCredentials= which looks
everywhere, uses globs and so on and is hence very vague and unfocussed.

Fixes: #34740
man/systemd.exec.xml
src/core/exec-credential.c