|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH V4 07/12] TestSupport.pm: introduce iso_gen_flags_basic
... which returns the flags that can be passed to xorriso to create a
bootable image (not EFI capable though).
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
Osstest/TestSupport.pm | 10 ++++++++++
ts-redhat-install | 7 +------
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index a4a738f..5bf9b85 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -100,6 +100,7 @@ BEGIN {
create_iso_xorriso
create_empty_iso
+ iso_gen_flags_basic
rewrite_config_nocd
);
%EXPORT_TAGS = ( );
@@ -1896,6 +1897,15 @@ END
create_iso_xorriso($ho, $emptyiso, $emptydir, 60, @isogen_opts);
}
+sub iso_gen_flags_basic() {
+ return qw(-as mkisofs -R -J
+ -b isolinux/isolinux.bin
+ -c isolinux/boot.cat
+ -no-emul-boot
+ -boot-load-size 4
+ -boot-info-table);
+}
+
sub rewrite_config_nocd ($$$) {
my ($ho,$gho,$emptyiso) = @_;
guest_editconfig($ho, $gho, sub {
diff --git a/ts-redhat-install b/ts-redhat-install
index 8b2b2f8..386c9ce 100755
--- a/ts-redhat-install
+++ b/ts-redhat-install
@@ -125,12 +125,7 @@ sub prep () {
create_empty_iso($ho, $emptyiso, $emptydir);
- my @isogen= qw(-as mkisofs -R -J
- -b isolinux/isolinux.bin
- -c isolinux/boot.cat
- -no-emul-boot
- -boot-load-size 4
- -boot-info-table);
+ my @isogen= iso_gen_flags_basic();
more_prepareguest_hvm($ho,$gho, $ram_mb, $disk_mb,
OnReboot => 'preserve',
--
1.7.10.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |