From e2f451d8766723ffec268859b0e4898f7a025ec0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 10 Jun 2024 14:57:18 +0200 Subject: [PATCH] pcrlock: don't override conf_root parameter for boot_entry_token_ensure() 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcrlock/pcrlock.c b/src/pcrlock/pcrlock.c index a40d23a347b..0abb4699997 100644 --- a/src/pcrlock/pcrlock.c +++ b/src/pcrlock/pcrlock.c @@ -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, -- 2.47.3