wic: looking by plugins and .wks file in all layers
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | wic: add support to look in all layers and get .wks filescripts/ scripts/ | +49 | 0 replies | |
| 2/2 | wic: add support to look in all layers and get pluginsscripts/ | +23 | 2 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Tom Zanussi |
|---|---|
| Series | A-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] wic: looking by plugins and .wks file in all layers
Hi,
This introduces a little wic usability enhanced. Now wic has the ability to search in all layers looking by .wks files and plugins.
The aim is to provide the layers a way to keep .wks and plugins that they use. Without this patch the user need to inform the full path of .wks, or put it in scripts directory. Or, in case of plugins, only putting in scripts directory.
Example:
In .wks case, inside my custom layer I have the following files:
scripts/lib/image/canned-wks/
otns-directdisk-devel.wks
otns-directdisk.wks
otns-directsdcard-devel.wks
otns-directsdcard.wks
otns-nobml-directdisk-devel.wks
otns-nobml-directsdcard-devel.wks
So, I do:
$ wic list images otns-directdisk-devel Create a 'pcbios' direct disk image otns-directdisk Create a 'pcbios' direct disk image otns-nobml-directdisk-devel Create a 'pcbios' direct disk image otns-nobml-directsdcard-devel Create a 'pcbios' direct disk image otns-directsdcard Create a 'pcbios' direct disk image otns-directsdcard-devel Create a 'pcbios' direct disk image mkefidisk Create an EFI disk image directdisk Create a 'pcbios' direct disk image
And to plugins case, in another layer, I have:
scripts/lib/mic/plugins/source/
bootimg-pcbios-myplugin.py
To sum up, this enhanced wic because users could keep .wks and plugins inside their own layers.
I don't know if using the 'scripts/lib/' is the best to keep files in layers. Any suggestion?
Thanks.
João Henrique Ferreira de Freitas (2):
wic: add support to look in all layers and get .wks file
wic: add support to look in all layers and get plugins
scripts/lib/image/engine.py | 72 +++++++++++++++++++++++++++------------------ scripts/lib/mic/plugin.py | 28 ++++++++++++++---- scripts/wic | 6 ++++ 3 files changed, 72 insertions(+), 34 deletions(-)
Signature · 1 line
1.8.3.2