On 11.12.24 11:52, 'Jan Kiszka' via EFI Boot Guard wrote:
> On 11.12.24 10:45, 'Erdem Kahraman' via EFI Boot Guard wrote:
>> This change adds support for md configured RAID systems in the bg_env tools.
>> It ensures that the tool correctly identifies and handles RAID partitions
>> configured with md.
>>
>> Signed-off-by: Erdem Kahraman <[email protected]>
>> ---
>>  env/env_config_partitions.c | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/env/env_config_partitions.c b/env/env_config_partitions.c
>> index eae7be1..870f8d3 100644
>> --- a/env/env_config_partitions.c
>> +++ b/env/env_config_partitions.c
>> @@ -129,7 +129,8 @@ bool probe_config_partitions(CONFIG_PART *cfgpart, bool 
>> search_all_devices)
>>                         }
>>                         if (strncmp("/dev/mmcblk", dev->path, 11) == 0 ||
>>                             strncmp("/dev/loop", dev->path, 9) == 0 ||
>> -                           strncmp("/dev/nvme", dev->path, 9) == 0) {
>> +                           strncmp("/dev/nvme", dev->path, 9) == 0) ||
                                                                     ^^^

Also fixed this up now - simple patches tend to be send untested ;)

Jan

>> +                           strncmp("/dev/md", dev->path, 7) == 0 {
>>                                 (void)snprintf(devpath, 4096, "%sp%u",
>>                                                dev->path, part->num);
>>                         } else {
>> --
>> 2.39.5
>>
> 
> Unfortunately, this version was now white-space mangled again. I fixed
> that up and applied it nevertheless, but please take care next time.
> 
> Jan
> 

-- 
Siemens AG, Foundational Technologies
Linux Expert Center

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/efibootguard-dev/c07a2407-4070-431e-9350-50b8dafb97fe%40siemens.com.

Reply via email to