dissect-image: add env var for disabling "sidecar" loading of verity params

Just to make debugging easier.
This commit is contained in:
Lennart Poettering
2021-09-28 17:03:26 +02:00
parent 88b3300fdc
commit d5fcc5b053
+6
View File
@@ -2609,6 +2609,12 @@ int verity_settings_load(
if (is_device_path(image))
return 0;
r = getenv_bool_secure("SYSTEMD_DISSECT_VERITY_SIDECAR");
if (r < 0 && r != -ENXIO)
log_debug_errno(r, "Failed to parse $SYSTEMD_DISSECT_VERITY_SIDECAR, ignoring: %m");
if (r == 0)
return 0;
designator = verity->designator;
/* We only fill in what isn't already filled in */