]> git.ozlabs.org Git - petitboot/commit
discover: Change parsers to explicitly request configuration files
authorNeelesh Gupta <neelegup@linux.vnet.ibm.com>
Mon, 28 Oct 2013 07:15:21 +0000 (12:45 +0530)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 6 Nov 2013 08:34:26 +0000 (16:34 +0800)
commitb8e53cb4b96eb17dc7fa0ffc505dfebae37e6cbf
tree2049ee274a9a7872366da8b95dbecaffc215df3a
parentf385e8cacbc574e213b0805a8d383373f29a8058
discover: Change parsers to explicitly request configuration files

Add a new function parser_request_url() to read the data from
configuration files present remotely. We deprecate
iterate_parser_files() and download_config() functions along with the
'filenames' and 'method' members of the 'parser' structure so that
individual parsers would now require to request the configuration files
data from the parser code and doesn't necessarily export the list of
configuration files.

Add the support to handle incoming DHCP event, done by passing all the
relevant environment variables of the udhcpc to the discover code.
Also, update the pxe parser code to populate the list of configuration
file names as per PXELINUX convention of fallback names using mac and ip
addresses of the booting machine.

Signed-off-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
15 files changed:
discover/device-handler.c
discover/device-handler.h
discover/event.c
discover/event.h
discover/grub2/grub2.c
discover/kboot-parser.c
discover/parser.c
discover/parser.h
discover/pxe-parser.c
discover/udev.c
discover/user-event.c
discover/user-event.h
discover/yaboot-parser.c
test/parser/handler.c
utils/pb-udhcpc