[opensuse-buildservice] Using kiwi to build an image in OBS
I am trying to build an oS image in OBS using kiwi. I have looked at a few other projects doing this, but cannot quite seem to get it to work. When the package builds, I get the following as unresolvable: have choice for plymouth-branding needed by plymouth: plymouth-branding- basedonopensuse plymouth-branding-openSUSE, have choice for sbin_init needed by mkinitrd: systemd-mini-sysvinit systemd- sysvinit, have choice for systemd-presets-branding needed by systemd: systemd-presets- branding-openSUSE systemd-presets-branding-basedonopensuse If I understand correctly from the docs, I need to tell which package to choose. In my Project Config, I have the following, which seems to me to be telling which to use: Prefer: openSUSE-release openSUSE-release-ftp plymouth-branding- basedonopensuse Prefer: -build-mkbaselibs-sle Prefer: -systemd-presets-branding-openSUSE Prefer: -libqt4-sql-32bit -libqt4-sql-x86 -libassuan0-32bit Prefer: systemd-sysvinit Prefer: systemd Prefer: -systemd-mini -systemd-mini-devel -systemd-mini-sysvinit Is this how it should be done? The project is: https://build.opensuse.org/package/show/home:rogeroberholtzer:kiwi/12.1 -- Yours sincerely, Roger Oberholtzer Ramböll RST / Systems Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Mittwoch, 15. Januar 2014, 15:43:10 wrote Roger Oberholtzer:
I am trying to build an oS image in OBS using kiwi. I have looked at a few other projects doing this, but cannot quite seem to get it to work. When the package builds, I get the following as unresolvable:
have choice for plymouth-branding needed by plymouth: plymouth-branding- basedonopensuse plymouth-branding-openSUSE, have choice for sbin_init needed by mkinitrd: systemd-mini-sysvinit systemd- sysvinit, have choice for systemd-presets-branding needed by systemd: systemd-presets- branding-openSUSE systemd-presets-branding-basedonopensuse
If I understand correctly from the docs, I need to tell which package to choose. In my Project Config, I have the following, which seems to me to be telling which to use:
Prefer: openSUSE-release openSUSE-release-ftp plymouth-branding- basedonopensuse Prefer: -build-mkbaselibs-sle Prefer: -systemd-presets-branding-openSUSE Prefer: -libqt4-sql-32bit -libqt4-sql-x86 -libassuan0-32bit Prefer: systemd-sysvinit Prefer: systemd Prefer: -systemd-mini -systemd-mini-devel -systemd-mini-sysvinit
Is this how it should be done?
Your prefers may be correct, but have no effect with your current configuration. The reason is that for kiwi builds the dependencies needs to be resolved twice. One time for the system which is used to execute kiwi. And another time for the system which will be installed by kiwi. The later one is specified by the repositories of the .kiwi file. But since there is no repository inside which is using your project, these prjconf rules are not used. So, best might be to add a standard openSUSE 13.1 repository to your project and use that one in your kiwi file as well. It does not matter that there are no rpms inside, but it will take the prjconf from your project into account then. -- 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
On Thursday, January 16, 2014 09:43:15 AM Adrian Schröter wrote:
So, best might be to add a standard openSUSE 13.1 repository to your project and use that one in your kiwi file as well. It does not matter that there are no rpms inside, but it will take the prjconf from your project into account then.
I have the following in my package's .kiwi file: <repository type="rpm-md"> <source path="obs://openSUSE:13.1/standard"/> </repository> And the following in my project meta data: <repository name="images"> <path project="openSUSE:13.1" repository="standard"/> <arch>i586</arch> </repository> Is this what you mean? I have also played with the Prefers a bit and have gotten further. My unresolvable is now: "conflict for provider of systemd-mini = 208 needed by systemd-mini-sysvinit, (provider systemd-mini is conflicted by the build config)" -- Yours sincerely, Roger Oberholtzer Ramböll RST / Systems Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Adrian Schröter
-
Roger Oberholtzer