[libvirt] [libvirt-tck PATCH] Debian calls mkisofs genisoimage

Eric Blake eblake at redhat.com
Sat Oct 20 16:37:50 UTC 2012


On 10/20/2012 02:26 AM, Guido Günther wrote:
> so check for that too when generating the iso.
> ---
>  lib/Sys/Virt/TCK/NetworkHelpers.pm |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/lib/Sys/Virt/TCK/NetworkHelpers.pm b/lib/Sys/Virt/TCK/NetworkHelpers.pm
> index f7f6d70..5e1bac1 100644
> --- a/lib/Sys/Virt/TCK/NetworkHelpers.pm
> +++ b/lib/Sys/Virt/TCK/NetworkHelpers.pm
> @@ -32,8 +32,10 @@ sub build_cdrom_ks_image {
>      unless (-e $isoimage) {
>  	my $isofiledir = $tck->bucket_dir($bucket1);
>  	my $ksfile = $tck->get_scratch_resource($ks, $bucket1, "ks.cfg");
> +	my @progs = `which mkisofs genisoimage`;
> +	chomp(@progs);
>  
> -	`mkisofs -o "$isoimage" $isofiledir`;
> +	`$progs[0] -o "$isoimage" $isofiledir`;

ACK.  Hopefully 'which' is portable enough in practice.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20121020/4fa545b4/attachment-0001.sig>


More information about the libvir-list mailing list