mirror of
https://github.com/systemd/systemd.git
synced 2026-08-12 22:17:19 +00:00
gpt-auto-generator: do not fail on missing libcryptsetup when verity
is not used add_veritysetup() is called unconditionally from add_root_mount() and add_usr_mount() whenever in_initrd() is true, to generate units that only activate if verity devices appear. However, when compiled without libcryptsetup, this function returned a hard error, causing the entire generator to fail even when no verity protection is in use. Change the #else fallback to log a debug message and return 0, matching the pattern already used by add_root_cryptsetup().
This commit is contained in:
committed by
Daan De Meyer
parent
f59b1f1a7d
commit
1d78c2d327
@@ -295,8 +295,8 @@ static int add_veritysetup(
|
||||
|
||||
return 0;
|
||||
#else
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),
|
||||
"Partition is Verity protected, but systemd-gpt-auto-generator was compiled without libcryptsetup support.");
|
||||
log_warning("Compiled without libcryptsetup support, skipping verity setup for '%s'.", id);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user