[opensuse-buildservice] how to embed BS-generated ISOs within other BS-generated kiwi images

Hi all, I'm using the Build Service to generate a Vagrant box via kiwi: https://github.com/openSUSE/kiwi/wiki/Building-vagrant-boxes and I would like to inject into it at build-time a couple of .iso files which are generated by the same Build Service instance (but in a different project). I don't mind whether the .isos are injected as normal files, or are unpacked as part of the injection. But I would really like to do it at build-time if possible. So is there any way of doing this? I see that kiwi supports the <archive> element but the question is how to reference the .isos as sources. I guess I could use the download_files source service to fetch the .isos into the package prior to build-time, but the names of the .isos change every time they get rebuilt by the BS instance. Thanks, Adam -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Hi I asked similar question, not tried yet though: http://lists.opensuse.org/opensuse-buildservice/2014-09/msg00000.html -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Matwey V. Kornilov <matwey.kornilov@gmail.com> wrote:
Hi
I asked similar question, not tried yet though:
http://lists.opensuse.org/opensuse-buildservice/2014-09/msg00000.html
Oh wow, fantastic - thanks! And a google hunt for "kiwi_post_run" eventually led me to where the hook is executed: https://github.com/openSUSE/obs-build/blob/master/build-recipe-kiwi#L461 /usr/lib/build/build-recipe-kiwi It also led me to this: https://github.com/bgeuken/containment-rpm which is a perfect starting point for building my own hook. But now I remember, I've already been told in the past that the Studio guys already use this trick for their containment rpms - I had totally forgotten that :-) My IRC logs show this: 2013-01-10 19:12:04 <jamestyj> aspiers: I added some background text to https://github.com/SUSE/studio/wiki/Containment-guidelines, hope it helps BTW, that wiki page has a bunch of broken links to URLs beginning: https://github.com/openSUSE/containment-rpm but I can only see the following repos in the github network: https://github.com/bgeuken/containment-rpm https://github.com/jamestyj/containment-rpm Was that unfinished business? Should we fork or even move one of these into the openSUSE organization? I guess the other approach is to invoke kiwi from inside a .spec file, which is how we build sleshammer for Crowbar: https://build.opensuse.org/package/view_file/systemsmanagement:crowbar:roxy/... but IIRC the disadvantage of that is that it does not produce a free-standing .iso which can be downloaded separately from the containment rpm - right? And in my current case, the .isos are needed separately as well as within the Vagrant box. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Adam Spiers <aspiers@suse.com> wrote:
Matwey V. Kornilov <matwey.kornilov@gmail.com> wrote:
Hi
I asked similar question, not tried yet though:
http://lists.opensuse.org/opensuse-buildservice/2014-09/msg00000.html
Oh wow, fantastic - thanks! And a google hunt for "kiwi_post_run" eventually led me to where the hook is executed:
https://github.com/openSUSE/obs-build/blob/master/build-recipe-kiwi#L461 /usr/lib/build/build-recipe-kiwi
It also led me to this:
https://github.com/bgeuken/containment-rpm
which is a perfect starting point for building my own hook.
But now I remember, I've already been told in the past that the Studio guys already use this trick for their containment rpms - I had totally forgotten that :-) My IRC logs show this:
2013-01-10 19:12:04 <jamestyj> aspiers: I added some background text to https://github.com/SUSE/studio/wiki/Containment-guidelines, hope it helps
BTW, that wiki page has a bunch of broken links to URLs beginning:
https://github.com/openSUSE/containment-rpm
but I can only see the following repos in the github network:
https://github.com/bgeuken/containment-rpm https://github.com/jamestyj/containment-rpm
Was that unfinished business? Should we fork or even move one of these into the openSUSE organization?
Noone replied to this, so I just forked it to openSUSE to fix the links, since it seems pretty clear that was the original intention. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Samstag, 6. September 2014, 18:20:46 wrote Adam Spiers:
Hi all,
I'm using the Build Service to generate a Vagrant box via kiwi:
https://github.com/openSUSE/kiwi/wiki/Building-vagrant-boxes
and I would like to inject into it at build-time a couple of .iso files which are generated by the same Build Service instance (but in a different project). I don't mind whether the .isos are injected as normal files, or are unpacked as part of the injection. But I would really like to do it at build-time if possible.
Since iso files do not provide any provides/requires information this is not easy possible. You have to wrap them into rpm packages to get them installed. You can do so by writing a script and package it as /usr/lib/build/kiwi_post_run this will be executed after the kiwi build, so you can re-package all wanted kiwi resulted files into an rpm and place it inside of the $RPMBUILD/OTHER directory. You need also to override the repo via following in the prjconf, since OBS expects no rpms by default from kiwi builds: Repotype: rpm-md
So is there any way of doing this? I see that kiwi supports the <archive> element but the question is how to reference the .isos as sources. I guess I could use the download_files source service to fetch the .isos into the package prior to build-time, but the names of the .isos change every time they get rebuilt by the BS instance.
please do not do that, it would also archive the iso files forever ... -- Adrian Schroeter email: adrian@suse.de SUSE LINUX GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Adam Spiers
-
Adrian Schröter
-
Matwey V. Kornilov