diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index bfde5cd5a0..f2634139f7 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -2123,7 +2123,7 @@ int verity_settings_load( } } - if (verity->root_hash && !verity->root_hash_sig) { + if ((root_hash || verity->root_hash) && !verity->root_hash_sig) { if (root_hash_sig_path) { r = read_full_file(root_hash_sig_path, (char**) &root_hash_sig, &root_hash_sig_size); if (r < 0 && r != -ENOENT)