From: Wei Liu Subject: Re: TestSupport.pm: introduce create_empty_iso Date: Sat, 22 Mar 2014 17:09:23 +0000 Message-ID: <20140322170923.GA6337@zion.uk.xensource.com> References: <9396663328702567914@scdbackup.webframe.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <9396663328702567914@scdbackup.webframe.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Thomas Schmitt Cc: wei.liu2@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org You forgot to CC xen-devel. I've added it back for the benifit of other people. On Fri, Mar 21, 2014 at 11:26:10PM +0100, Thomas Schmitt wrote: > Hi, > > i read in > http://lists.xen.org/archives/html/xen-devel/2014-03/msg02873.html > > > [Xen-devel] [PATCH V4 06/12] TestSupport.pm: introduce create_empty_iso > > diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm > > index df6c4c1..a4a738f 100644 > > + # Unfortunately xorriso refuses to create an ISO if the input > > + # directory is empty. > > It is possible by > > xorriso -as mkisofs -o /tmp/my.iso [more mkisofs options] \ > -- -changes_pending yes > > The argument "--" ends the range of -as mkisofs. > The xorriso command -changes_pending "yes" forces image production > even if no files have been added. > Thanks for the tip. It's much better than my workaround! I will incorporate this into my patch. (not this one, but the other one that invokes xorriso) > > I am curious for what purpose you need an empty ISO filesystem. > In this kind of testcases, we generate an ISO to auto-install a guest. After the installation, the guest reboots. We replace the ISO in config file with an empyt ISO to prevent reinstalling the guest. > > Have a nice day :) > You too. :-) Wei. > Thomas