Add support for pulling initrd images from a repo
PATCH 1/1 Add support for pulling initrd images from a repo
XM-Test takes a really long time to build the initrd it uses for testing. This patch to the Makefile allows you to specify INITRD="url" when running make existing to make it download a prebuilt copy of the initrd from a repository. This also updates the README to document the change.
Thanks,
Paul Larson
# HG changeset patch
# User [email protected]
# Node ID 1f91359510f31c52f48ca5ab85a6ee44c41212e5
# Parent 1c7145a5bb434413204a3ce4114de7f58fbb9029
XM-Test takes a really long time to build the initrd it uses for testing. This patch to the Makefile allows you to specify INITRD="url" when running make existing to make it download a prebuilt copy of the initrd from a repository.
tools/xm-test/README +9 -0
@@ -48,6 +48,15 @@ Simply copy the initrd-X.Y.img file into ramdisk/ and then run: # make existing + +Or, you can run: + # INITRD="http://url.of.initrd.repo/" make existing + +You do not need to include the name of the image itself in the url, +however, an initrd with the right name (initrd.X.Y.img) and version +number must exist at that location. The script will determine which +version of the initrd it needs and try to download the right file from +that location. This will set up the link so that xm-test will use the existing ramdisk. Next, just run "runtest.sh" normally. Note that in general,
tools/xm-test/ramdisk/Makefile.am +3 -0
@@ -57,6 +57,9 @@ fi existing: + @if test -n "$(INITRD)"; then \ + wget $(INITRD)/$(XMTEST_VER_IMG); \ + fi @if [ -f $(XMTEST_VER_IMG) ] ; then \ ln -sf $(XMTEST_VER_IMG) initrd.img; \ else \
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
PL> This patch to the Makefile allows you to specify INITRD="url" when PL> running make existing to make it download a prebuilt copy of the PL> initrd from a repository.
Yay. Really. Yay.
It was previously discussed at the summit that xensource might be able to host an initrd for the community. Now that this functionality is in xm-test, perhaps a URL could be posted to be used as a default for the INITRD variable?
Signature · 4 lines
Dan Smith IBM Linux Technology Center Open Hypervisor Team email: [email protected]
Quoted 11 lines · Dan Smith
PL> This patch to the
Makefileallows you to specify INITRD="url" when PL> running make existing to make it download a prebuilt copy of the PL> initrd from a repository.Yay. Really. Yay.
It was previously discussed at the summit that xensource might be able to host an initrd for the community. Now that this functionality is in xm-test, perhaps a URL could be posted to be used as a default for the INITRD variable?
Yes, we will do this. Dan, if you (or someone else at IBM) could provide a 'known good' initrd, then we'll host that, and I'll synchronise with you so that the patch to refer to that initrd goes in only once the initrd is in place.
They will be placed into
http://xm-test.xensource.com/ramdisks/
Please make sure that xm-test will only fetch the initrd if it can't find one locally, and will resume interrupted downloads rather than start again from scratch. This will hopefully avoid our machines melting under the load!
Thanks,
Ewan.
Quoted 22 lines · Ewan Mellor
Quoted 4 lines · Dan Smith
PL> This patch to the
Makefileallows you to specify INITRD="url" when PL> running make existing to make it download a prebuilt copy of the PL> initrd from a repository.Quoted 8 lines
Yay. Really. Yay.
It was previously discussed at the summit that xensource might be able to host an initrd for the community. Now that this functionality is in xm-test, perhaps a URL could be posted to be used as a default for the INITRD variable?
Yes, we will do this. Dan, if you (or someone else at IBM) could provide a 'known good' initrd, then we'll host that, and I'll synchronise with you so that the patch to refer to that initrd goes in only once the initrd is in place.
Quoted 9 lines
They will be placed into
http://xm-test.xensource.com/ramdisks/
Please make sure that xm-test will only fetch the initrd if it can't find one locally, and will resume interrupted downloads rather than start again from scratch. This will hopefully avoid our machines melting under the load!
Hi Ewan, I'm still not seeing a xm-test.xensource.com. Did this ever get created?
Thanks,
Paul Larson
Ewan Mellor
AppliedQuoted 10 lines · Paul Larson
XM-Test takes a really long time to build the initrd it uses for testing. This patch to the
Makefileallows you to specify INITRD="url" when running make existing to make it download a prebuilt copy of the initrd from a repository. This also updates the README to document the change.Signed-off-by Paul Larson <[email protected]>Thanks,
Paul Larson
Applied, thanks.
Ewan.