]> git.ozlabs.org Git - petitboot/commit
pb-plugin: Only require a fixed plugin extension, instead of full name
authorJeremy Kerr <jk@ozlabs.org>
Wed, 2 Sep 2015 07:41:38 +0000 (15:41 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 2 Sep 2015 07:41:38 +0000 (15:41 +0800)
commite75fa5f6bf36233c3bd72e9854d244908af9a391
treea3cec7462727b4c3278bc5d5ab25d1d6484b5cf0
parent0b71e584078dbe370ed37bcc26f2815d138d28fc
pb-plugin: Only require a fixed plugin extension, instead of full name

Currently, the `pb-plugin scan` code requires a fixed archive name at
the root of distributed media. This means that vendors need to have a
fixed name, and can only ship one plugin per device.

This change shifts the requirement to just a filename extension
(.pb-plugin) instead.

To handle this, we now look for any plugin with a .pb-plugin extension,
and so may find multiple plugins on a device.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
utils/pb-plugin