mirror of
https://github.com/systemd/systemd.git
synced 2025-02-21 05:57:34 +03:00
dissect-image: add env var for disabling "sidecar" loading of verity params
Just to make debugging easier.
This commit is contained in:
parent
88b3300fdc
commit
d5fcc5b053
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user