]> git.ozlabs.org Git - petitboot/commit
discover/pxe-parser: Recognise plugin sources
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 14 Feb 2017 04:56:14 +0000 (15:56 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 15 Aug 2017 03:03:22 +0000 (13:03 +1000)
commit9f191cc3c194ed51534c22e2dae15b2c08c8abc2
tree63158b566e95e496f238864ea8f791101ed9100c
parent98b04aa42a4f1dc8e585f00d75c3b28d9e9aa2a9
discover/pxe-parser: Recognise plugin sources

Extend the pxe-parser to recognise 'PLUGIN' as well as the usual 'LABEL'
when parsing a config file. 'PLUGIN' will be used to specify an option
that provides the location of an installable pb-plugin file, named by
the 'TARBALL' label.

Since plugin options are discovered via the same mechanism as boot
options treat them the same as boot options and at the 'type' field to
the boot_option struct to differentiate between them.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
discover/pxe-parser.c
lib/pb-protocol/pb-protocol.c
lib/types/types.h