From: Wei Liu Subject: Re: [PATCH V4 06/12] TestSupport.pm: introduce create_empty_iso Date: Wed, 2 Apr 2014 18:14:59 +0100 Message-ID: <20140402171459.GG6382@zion.uk.xensource.com> References: <1395418466-6997-1-git-send-email-wei.liu2@citrix.com> <1395418466-6997-7-git-send-email-wei.liu2@citrix.com> <21308.13796.966005.402092@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <21308.13796.966005.402092@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Wei Liu , ian.campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, Apr 02, 2014 at 05:08:04PM +0100, Ian Jackson wrote: > Wei Liu writes ("[PATCH V4 06/12] TestSupport.pm: introduce create_empty_iso"): > > Signed-off-by: Wei Liu > ... > > +sub create_empty_iso($$$) { > > + my ($ho,$emptyiso,$emptydir) = @_; > > + my @isogen_opts= qw(-as mkisofs -R -J); > > + > > + # Unfortunately xorriso refuses to create an ISO if the input > > + # directory is empty. > > How annoying. > With the help of a Xorriso developer this problem is fixed. > > + target_cmd_root($ho, < > + mkdir -p $emptydir > > + echo empty > $emptydir/empty > > +END > > Isn't this a duplicate of the code in ts-redhat-install ? > This will be deleted in my next version. Wei. > Ian.