Hi,

That's understood. but does it really matter? Is it hurting anyone or
> anything if they use --source extra-partition?


This change could lead to unintended behavior if a user makes a typo in the
variable, for example "fooo" instead of "foo":

    IMAGE_EXTRA_PARTITION_FILES_label-fooo = "bar.conf"

    part --source extra-partition --fstype=ext4 --label foo

In this case, the user might expect the build to fail. The current version
throws a fatal error, while your version would only notice it with the
debug option, but still accept it.

People see the "extra partition" plugin and assume they can make extra
> partitions from it. The plugin isn't named "extra partition with mandatory
> files"


I understand that the plugin name might create this assumption, and it
could be renamed. However, the plugin's description is clear:

    Populates an extra partition with files listed in the
IMAGE_EXTRA_PARTITION_FILES
    BitBake variable. Files should be deployed to the DEPLOY_DIR_IMAGE
directory.

Our visions on the plugin differ. From my point of view, since creating a
blank empty partition is already supported by Wic without a plugin (though
perhaps not well-documented, that's another subject), I see no real reason
and a disadvantage in allowing the extra-partition plugin to work without
files (or directories).

Pierre-Loup,


On Wed, Jan 14, 2026 at 11:56 AM Adam Duskett <
[email protected]> wrote:

>
> Hey Pierre-loup;
>
>
>
> On Wed, Jan 14, 2026 at 11:25 AM Pierre-loup GOSSE <
> [email protected]> wrote:
>
>> Hi Adam,
>>
>> I'm not seeing the problem with making this optional. A bootimg partition
>>> requires certain files to be present for a system to boot.
>>> An extra partition doesn't.
>>>
>>
>> My point is, why use the extra-partition plugin without files if omitting
>> --source already achieves the same result ?
>>
>>     part --source extra-partition --fstype=ext4 --label data --fixed-size
>> 500M
>>
>> Is equivalent to:
>>
>>     part --fstype=ext4 --label data --fixed-size 500M
>>
>> If your empty extra partition does not requires files, then there is not
>> need to use the extra-partition plugin.
>>
> That's understood. but does it really matter? Is it hurting anyone or
> anything if they use --source extra-partition?
>
>
>> This is why I designed the plugin to requires files, or creating
>> directories as in your patch 6/6. If both are optional, I don't see the
>> added value of using the extra-partition plugin for this use case.
>>
> People see the "extra partition" plugin and assume they can make extra
> partitions from it. The plugin isn't named "extra partition with mandatory
> files"
>
>>
>> That said, I'm open to making the plugin more flexible. It could allow no
>> files or directories, but it should raise a warning or a notice.
>>
> With this patch series, It does throw a notice. For both empty directories
> and empty files.
>
>>
>> Pierre-Loup,
>>
>>
>> On Wed, Jan 14, 2026 at 10:26 AM Adam Duskett <
>> [email protected]> wrote:
>>
>>> Hi Pierre! Thanks for the review!
>>>
>>> On Tue, Jan 13, 2026 at 4:13 PM Pierre-loup GOSSE via
>>> lists.openembedded.org <pierre-loup.gosse=
>>> [email protected]> wrote:
>>>
>>>> Hi Adam,
>>>>
>>>> Thanks for your contribution to the plugin.
>>>>
>>>>
>>>> There are many use cases where a user may need a blank partition of a
>>>> given
>>>> size and format with no extra files added. Such as an empty data
>>>> partition.
>>>>
>>>>
>>>> A blank partition can already be created without the extra-partition
>>>> plugin.
>>>>
>>>> Personally, I use the following example line in my WKS file:
>>>>
>>>>   part --fstype=ext4 --label data --fixed-size 500M
>>>>
>>>> This command creates a blank 500MB partition with an ext4 filesystem.
>>>>
>>>> In my opinion, the extra plugin should always requires files, similar
>>>> to the bootimg partition plugin (on which the extra partition plugin is
>>>> based).
>>>>
>>>>
>>> I'm not seeing the problem with making this optional. A bootimg
>>> partition requires certain files to be present for a system to boot.
>>> An extra partition doesn't.
>>>
>>> Adam
>>>
>>>> Pierre-Loup,
>>>>
>>>>
>>>> 
>>>>
>>>>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#229355): 
https://lists.openembedded.org/g/openembedded-core/message/229355
Mute This Topic: https://lists.openembedded.org/mt/117243676/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to