Hi VOLKER,
I still think that a partition size can't grow simply because the content
has grown. Most of the time generated wic files are used to update existing
devices and changing partition size can cause disasters on statically
mapped storages. We've worked around this problem by reimplementing our
customized wic plugins.

Il giorno gio 15 set 2022 alle ore 14:55 VOLKER VOGELHUBER <
[email protected]> ha scritto:

> We just stumbled over this problem as well, and I agree with Marco, that
> the current implementation does not make sense. In case one has a
> fixed-size of 20MB specified , the actual content size is below
> BOOTDD_EXTRA_SPACE the BOOTDD_EXTRA_SPACE will be added even if it results
> in a partition size that is larger than fixed-size.
> I would suggest to just remove
>
>
> *  if extra_blocks < BOOTDD_EXTRA_SPACE:            extra_blocks =
> BOOTDD_EXTRA_SPACE*
>
>
> [email protected] schrieb am Samstag, 2. Juli 2022 um 16:24:56 UTC+2:
>
>> Jia,
>> thanks for the answer.
>>
>> It seems to do the same thing as the wic's part --extra-space option
>> (which is not well documented too, it is not clear if it leaves space
>> inside the filesystem that will be written to the partition, or just leave
>> empty space in the partition outside of it).
>>
>> Regarding --fixed-space, I don't think it is actually working. Reading
>> through the source code of EFI boot guard plugins, they just consider
>> part.size and ignore part.fixed_size. If you try to use option --fixed-size
>> in the wic part command, you'll get an error.
>>
>> Il giorno venerdì 1 luglio 2022 alle 15:41:50 UTC+2 Jan Kiszka ha scritto:
>>
>>> On 01.07.22 14:17, Marco Braga wrote:
>>> > Hi,
>>> > while reading the code of the wic plugin, I stumbled upon
>>> > BOOTDD_EXTRA_SPACE. I really don't understand what is it for. It seems
>>> > that if the content of the partition uses space X, BOOTDD_EXTRA_SPACE
>>> > will add more space and make the partition grow so that there is
>>> always
>>> > at least BOOTDD_EXTRA_SPACE. Why isn't the partitltion simply fixed in
>>> size?
>>>
>>> BOOTDD_EXTRA_SPACE looks like an undocumented interface of OE wic to
>>> request, well, extra space on the boot partition. meta-efibootguard
>>> tries to implement this, just like
>>>
>>> https://git.openembedded.org/openembedded-core/tree/scripts/lib/wic/plugins/source/bootimg-efi.py.
>>>
>>> You may also specify a fixed size for your partition in the wks file, of
>>> course.
>>>
>>> Jan
>>>
>>> --
>>> Siemens AG, Technology
>>> Competence Center Embedded Linux
>>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "EFI Boot Guard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/efibootguard-dev/KozyIjb5gnk/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/efibootguard-dev/2cc7b79f-a6bc-4472-8cba-93c346484241n%40googlegroups.com
> <https://groups.google.com/d/msgid/efibootguard-dev/2cc7b79f-a6bc-4472-8cba-93c346484241n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/CAEPsuKMZsnN0qcsYf-8BJHyBkd1d3E4e4Ek9bvwk3RoLVOU%2BbQ%40mail.gmail.com.

Reply via email to