]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(integrity): remove unused variable
authorAlberto Planas <aplanas@suse.com>
Mon, 20 Jun 2022 13:49:48 +0000 (15:49 +0200)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Tue, 21 Jun 2022 07:05:01 +0000 (07:05 +0000)
Drop X509ID variable inside the `if`, and use the same comparison that
is already in evm_enable.

Signed-off-by: Alberto Planas <aplanas@suse.com>
modules.d/98integrity/ima-keys-load.sh

index be234761d825cf5b42d041155d28512335153d77..2374550b80498fb6b388a5fc3fa320cadcb3f06b 100755 (executable)
@@ -26,9 +26,7 @@ load_x509_keys() {
             continue
         fi
 
-        # FIXME: X509ID unused?
-        # shellcheck disable=SC2034
-        if ! X509ID=$(evmctl import "${PUBKEY}" "${KEYRING_ID}"); then
+        if ! evmctl import "${PUBKEY}" "${KEYRING_ID}"; then
             info "integrity: IMA x509 cert not loaded on keyring: ${PUBKEY}"
         fi
     done