mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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.
Signed-off-by: Paul Larson <pl@us.ibm.com>
This commit is contained in:
1 parent
acd1abe9f9
commit
c9eb2aae5d
2 files changed
+12
No files matched your search
@@ -49,6 +49,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,
|
||||
you should not attempt to use a ramdisk from a previous minor version
|
||||
|
||||
@@ -57,6 +57,9 @@ disk.img: existing
|
||||
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 \
|
||||
|
||||