Skip to contentSkip to conversation

TestSupport.pm: introduce create_empty_iso

DISCUSSION Wei Liu 2 participants 4 messages Mar 22, 2014 1 message not in the archive

lore
Share & tools
lore

Wei Liu

author
#1 lore raw
In reply to a message not in the archive

You forgot to CC xen-devel. I've added it back for the benifit of other people.

Quoted 13 lines · Thomas Schmitt

Hi,

i read in
http://lists.xen.org/archives/html/xen-devel/2014-03/msg02873.html

Osstest/TestSupport.pm

Quoted 5 lines

[Xen-devel] [PATCH V4 06/12] TestSupport.pm: introduce create_empty_iso

Osstest/TestSupport.pm +2 -0
index df6c4c1..a4a738f 100644
+ # Unfortunately xorriso refuses to create an ISO if the input
+ # directory is empty.

It is possible by

Quoted 7 lines
   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)

Quoted 3 lines

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.

Quoted 3 lines

Have a nice day :)

You too. :-)

Wei.

Quoted 1 line

Thomas

#2 lore raw

Hi,

Quoted 2 lines · Wei Liu

You forgot to CC xen-devel. I've added it back for the benifit of other people.

I was not sure whether it is appropriate to discuss the usage of xorriso on xen-devel.

Quoted 2 lines

We replace the ISO in config
file with an empyt ISO to prevent reinstalling the guest.

In any kind of language there is a use case for no-op.

If you have questions or proposals about xorriso, don't hesitate to contact me in private or at [email protected].

Have a nice day :)

Thomas

author
#3 lore raw
Quoted 9 lines · Thomas Schmitt

Hi,

Quoted 2 lines · Wei Liu

You forgot to CC xen-devel. I've added it back for the benifit of other people.

I was not sure whether it is appropriate to discuss the usage of xorriso on xen-devel.

It's about making a patch better so it's definitely appropriate. I've incorporated your suggestion into my patches. Thanks!

Quoted 10 lines
Quoted 3 lines

We replace the ISO in config
file with an empyt ISO to prevent reinstalling the guest.

In any kind of language there is a use case for no-op.

If you have questions or proposals about xorriso, don't hesitate to contact me in private or at [email protected].

Sure. Kinda surprise xorriso developers also subscribe to Xen-devel. :-)

Wei.

Quoted 4 lines

Have a nice day :)

Thomas

#4 lore raw

Hi,

Quoted 1 line

Kinda surprise xorriso developers also subscribe to Xen-devel. :-)

I'm not subscribed. Google found your patches yesterday when i did a "Past 24 hours" search for "xorriso". Fishing the web for bug indications.

My meeting points with Xen would be production of bootable ISOs and SCSI command passthrough for operating real CD/DVD/BD burners of the host from a Xen guest.

Up to now, no libburn user reported problems with the latter. Question is whether anybody tried yet.

Have a nice day :)

Thomas