mirror of
https://github.com/systemd/systemd.git
synced 2024-10-29 21:55:36 +03:00
repart: Always define VerityMode from/to string functions
This commit is contained in:
parent
bbf73b0069
commit
86bebe385f
@ -255,12 +255,11 @@ static const char *verity_mode_table[_VERITY_MODE_MAX] = {
|
||||
|
||||
#if HAVE_LIBCRYPTSETUP
|
||||
DEFINE_PRIVATE_STRING_TABLE_LOOKUP_WITH_BOOLEAN(encrypt_mode, EncryptMode, ENCRYPT_KEY_FILE);
|
||||
DEFINE_PRIVATE_STRING_TABLE_LOOKUP(verity_mode, VerityMode);
|
||||
#else
|
||||
DEFINE_PRIVATE_STRING_TABLE_LOOKUP_FROM_STRING_WITH_BOOLEAN(encrypt_mode, EncryptMode, ENCRYPT_KEY_FILE);
|
||||
DEFINE_PRIVATE_STRING_TABLE_LOOKUP_FROM_STRING(verity_mode, VerityMode);
|
||||
#endif
|
||||
|
||||
DEFINE_PRIVATE_STRING_TABLE_LOOKUP(verity_mode, VerityMode);
|
||||
|
||||
static uint64_t round_down_size(uint64_t v, uint64_t p) {
|
||||
return (v / p) * p;
|
||||
|
Loading…
Reference in New Issue
Block a user