path: root/discover
diff options
authorOliver O'Halloran <>2016-05-09 15:38:47 +1000
committerSamuel Mendoza-Jonas <>2016-05-24 11:08:11 +1000
commit6993af8a4b8bb3c6b1d12172b346c5aa41b7dc61 (patch)
tree8f0ddd99b7b9da47ad937d99e8b1f81decc175a3 /discover
parent87fa4885310b6c6b79e31d79d192ba9ea90cf236 (diff)
pb-discover: add dtb support for PXE config
Currently there is no way to manually specify a DTB file when with a PXE network boot configuration file. This makes it difficult when you need to work with or emulate a special snowflake machines with special snowflake hardware. Some ARM systems provide this feature with the "fdt" option so this patch adds support for using the ftd or dtb configuration options to the PXE config parser. Signed-off-by: Oliver O'Halloran <> Signed-off-by: Samuel Mendoza-Jonas <>
Diffstat (limited to 'discover')
1 files changed, 4 insertions, 0 deletions
diff --git a/discover/pxe-parser.c b/discover/pxe-parser.c
index 95547c3..4812c37 100644
--- a/discover/pxe-parser.c
+++ b/discover/pxe-parser.c
@@ -189,6 +189,10 @@ static void pxe_process_pair(struct conf_context *ctx,
type = strtoul(value, &end, 10);
if (end != value && !(*end))
pxe_process_sysappend(ctx->dc, opt, type);
+ } else if (streq(name, "DTB") || streq(name, "FDT")) {
+ url = pxe_url_join(ctx->dc, ctx->dc->conf_url, value);
+ opt->dtb = create_url_resource(opt, url);
OpenPOWER on IntegriCloud