summaryrefslogtreecommitdiffstats
path: root/test/parser/test-pxe-pathprefix-discover.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-02-27 10:33:13 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-02-27 13:24:23 +0800
commit30dce4ce0447802e3b54b3f760c5fd8eacbe75ff (patch)
tree2bbe9adfa18f15859d3d5a1343b6c4a8e3215639 /test/parser/test-pxe-pathprefix-discover.c
parent9c950743461770220231d320db8c372aa74f9163 (diff)
downloadtalos-petitboot-30dce4ce0447802e3b54b3f760c5fd8eacbe75ff.tar.gz
talos-petitboot-30dce4ce0447802e3b54b3f760c5fd8eacbe75ff.zip
discover/pxe: Add pxelinux.cfg/ directory to autodiscovered pxe paths
The pxelinux project will perform autodiscovery by looking for files under the pxelinux.cfg/ prefix (in addition to any pxepathprefix from DHCP option 210) This change unifies petitboot's behaviour with pxelinux. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'test/parser/test-pxe-pathprefix-discover.c')
-rw-r--r--test/parser/test-pxe-pathprefix-discover.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/parser/test-pxe-pathprefix-discover.c b/test/parser/test-pxe-pathprefix-discover.c
index de2feac..9cb44c8 100644
--- a/test/parser/test-pxe-pathprefix-discover.c
+++ b/test/parser/test-pxe-pathprefix-discover.c
@@ -15,7 +15,8 @@ void run_test(struct parser_test *test)
struct discover_boot_option *opt;
struct discover_context *ctx;
- test_read_conf_embedded_url(test, "tftp://host/path/to/C0A8");
+ test_read_conf_embedded_url(test,
+ "tftp://host/path/to/pxelinux.cfg/C0A8");
test_set_event_source(test);
test_set_event_param(test->ctx->event, "ip", "192.168.0.1");
@@ -34,5 +35,6 @@ void run_test(struct parser_test *test)
check_resolved_url_resource(opt->boot_image,
"tftp://host/path/to/./kernel");
- check_resolved_url_resource(opt->initrd, "tftp://host/initrd");
+ check_resolved_url_resource(opt->initrd,
+ "tftp://host/initrd");
}
OpenPOWER on IntegriCloud