]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
wic: Avoid problems with "-" characters in plugin names
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Jun 2025 16:20:52 +0000 (17:20 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Jun 2025 16:56:27 +0000 (17:56 +0100)
commit6d9c76196ffad39e628aff76d53d6ecbb517cfa1
treed3d6a31a84c0eba2ce4e4081990cec0986d1cd2d
parentafa1b5c9f6ed17c021e37a54d0d6abee50a60bf9
wic: Avoid problems with "-" characters in plugin names

Remap "-" characters in plugin names to "_" so wic plugins
can be extended using standard python class inheritance.

This change means wic files can be incrementally updated over time
to the correct name rather than breaking everything. Actual plugin
module files will need to be renamed as done in previous patches.

Also remove a double call to get_plugins() which isn't needed.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/engine.py
scripts/lib/wic/partition.py
scripts/lib/wic/plugins/imager/direct.py