]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pcrlock: don't override conf_root parameter for boot_entry_token_ensure()
authorLennart Poettering <lennart@poettering.net>
Mon, 10 Jun 2024 12:57:18 +0000 (14:57 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 14 Jun 2024 21:50:47 +0000 (22:50 +0100)
if we pass NULL boot_entry_token_ensure() will use its own default,
which is the same as what we passed so far explicitly, hence let's make
use of that.

src/pcrlock/pcrlock.c

index a40d23a347bd3c4e248efac64afea732fa20dc3d..0abb4699997de4f3ecb5f6c5aa15b223ebd8c300 100644 (file)
@@ -4329,7 +4329,7 @@ static int determine_boot_policy_file(char **ret) {
 
         r = boot_entry_token_ensure(
                         /* root= */ NULL,
-                        "/etc/kernel",
+                        /* conf_root= */ NULL,
                         machine_id,
                         /* machine_id_is_random = */ false,
                         &arg_entry_token_type,