From: Wei Liu <wei.liu2@citrix.com>
To: xen-devel@lists.xen.org
Cc: Wei Liu <wei.liu2@citrix.com>,
ian.jackson@eu.citrix.com, ian.campbell@citrix.com
Subject: [PATCH RFC V3 3/7] TestSupport.pm: functions for creating isos
Date: Thu, 12 Dec 2013 21:03:00 +0000 [thread overview]
Message-ID: <1386882184-15324-4-git-send-email-wei.liu2@citrix.com> (raw)
In-Reply-To: <1386882184-15324-1-git-send-email-wei.liu2@citrix.com>
I would have replaced genisoimage with xorriso but I think it is better
to keep it for compatibility.
create_iso_xorriso is mainly used to create a EFI bootable ISO image. As
far as I can tell Wheezy's genisoimage cannot do that.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
Osstest/TestSupport.pm | 28 ++++++++++++++++++++++++++++
ts-redhat-install | 13 ++++---------
2 files changed, 32 insertions(+), 9 deletions(-)
diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index ebe313c..31ca102 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -97,6 +97,9 @@ BEGIN {
await_webspace_fetch_byleaf create_webfile
file_link_contents get_timeout
setup_pxeboot setup_pxeboot_local host_pxefile
+
+ create_iso_genisoimage
+ create_iso_xorriso
);
%EXPORT_TAGS = ( );
@@ -1859,4 +1862,29 @@ default local
END
}
+#---------- ISO images ----------
+sub create_iso_genisoimage ($$$$;@) {
+ my ($ho,$iso,$dir,$isotimeout,@xopts) = @_;
+
+ target_install_packages_norec($ho, qw(genisoimage));
+
+ target_cmd_root($ho, <<END, 60);
+ mkdir -p $dir
+ genisoimage @xopts -o $iso $dir/.
+END
+
+}
+
+sub create_iso_xorriso ($$$$;@) {
+ my ($ho,$iso,$dir,$isotimeout,@xopts) = @_;
+
+ target_install_packages_norec($ho, qw(xorriso));
+
+ target_cmd_root($ho, <<END, 60);
+ mkdir -p $dir
+ xorriso @xopts -o $iso $dir/.
+END
+
+}
+
1;
diff --git a/ts-redhat-install b/ts-redhat-install
index a945033..87f2335 100755
--- a/ts-redhat-install
+++ b/ts-redhat-install
@@ -112,7 +112,7 @@ END
our $emptyiso= '/root/empty.iso';
sub prep () {
- target_install_packages_norec($ho, qw(lvm2 rsync genisoimage));
+ target_install_packages_norec($ho, qw(lvm2 rsync));
my $isotimeout= 600;
@@ -129,12 +129,9 @@ sub prep () {
-no-emul-boot
-boot-load-size 4
-boot-info-table);
+ my @isogen= (@isogen_base, @isogen_boot);
- target_cmd_root($ho, <<END, 60);
- set -e
- mkdir -p $emptydir
- genisoimage -o $emptyiso @isogen_base $emptydir/.
-END
+ create_iso_genisoimage($ho, $emptyiso, $emptydir, 60, @isogen_base);
more_prepareguest_hvm($ho,$gho, $ram_mb, $disk_mb,
OnReboot => 'preserve',
@@ -163,9 +160,7 @@ END
target_putfilecontents_root_stash($ho, 10, kickstart(),
"$newiso/ks.cfg");
- target_cmd_root($ho, <<END, $isotimeout);
- genisoimage -o $gho->{Rimage} @isogen_base @isogen_boot $newiso/.
-END
+ create_iso_genisoimage($ho, $gho->{Rimage}, $newiso, $isotimeout, @isogen);
});
}
--
1.7.10.4
next prev parent reply other threads:[~2013-12-12 21:03 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-12 21:02 [PATCH RFC V3 0/7] OSSTest: OVMF test job Wei Liu
2013-12-12 21:02 ` [PATCH RFC V3 1/7] make-flight: disable OVMF build for 4.3 Wei Liu
2013-12-12 21:06 ` Wei Liu
2013-12-12 21:02 ` [PATCH RFC V3 2/7] TestSupport.pm: add bios option to guest config file Wei Liu
2013-12-12 21:03 ` Wei Liu [this message]
2014-03-20 16:10 ` [PATCH RFC V3 3/7] TestSupport.pm: functions for creating isos Ian Jackson
2014-03-20 16:56 ` Wei Liu
2014-03-20 17:04 ` Ian Jackson
2013-12-12 21:03 ` [PATCH RFC V3 4/7] Debian.pm: factor out preseed_base Wei Liu
2014-03-20 16:10 ` Ian Jackson
2013-12-12 21:03 ` [PATCH RFC V3 5/7] Introduce ts-debian-hvm-install Wei Liu
2014-03-20 16:13 ` Ian Jackson
2014-03-20 16:14 ` Ian Jackson
2014-03-20 17:01 ` Wei Liu
2014-03-20 17:11 ` Ian Jackson
2013-12-12 21:03 ` [PATCH RFC V3 6/7] make-flight: OVMF test filght Wei Liu
2013-12-12 21:03 ` [PATCH RFC V3 7/7] sg-run-job: OVMF job Wei Liu
2014-03-20 16:16 ` Ian Jackson
2014-01-22 15:52 ` [PATCH RFC V3 0/7] OSSTest: OVMF test job Wei Liu
2014-03-20 16:03 ` Ian Campbell
2014-03-20 16:17 ` Ian Jackson
2014-03-20 17:02 ` Wei Liu
2014-03-20 17:14 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1386882184-15324-4-git-send-email-wei.liu2@citrix.com \
--to=wei.liu2@citrix.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).