[opensuse-buildservice] Is it possible to have prjconf settings per package/image?
Hi all, this question comes up from time to time in our team, so finally I am hoping for an answer ;-) Example setting: Building multiple kiwi images in a OBS project SLES12SP3 and SLES12SP2 images need different Preinstall settings, as some stuff (skopeo, umoci, ...) is not available in SP2 but required in SP3. I know I can specify different settings per repository (if %_repository == images), but is it possible to set it per package/image? Something like %_packagename or %_name or similar? Or somehow find out the OS version and set stuff accordingly? Not sure if images are accepting the suse_version macros... Thanks in advance. Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
Johannes Kastl schrieb:
Not sure if images are accepting the suse_version macros...
Seems like they do. I could successfully add some PreInstall statements for only one release version of my images, not all of them. Still it would be interesting of one can do this more fine grained down to packages level... Kind Regards, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
On Montag, 2. Juli 2018, 20:19:50 CEST wrote Johannes Kastl:
Johannes Kastl schrieb:
Not sure if images are accepting the suse_version macros...
Seems like they do. I could successfully add some PreInstall statements for only one release version of my images, not all of them.
Still it would be interesting of one can do this more fine grained down to packages level...
No, you can't do it per package. Only per repository. Where is the point of having project global rules for a specific package? IMHO it belongs to the package source then? -- Adrian Schroeter email: adrian@suse.de SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, 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
Hi Adrian, Adrian Schröter schrieb:
Where is the point of having project global rules for a specific package? IMHO it belongs to the package source then?
I agree, but if we are talking about images instead of RPMs, sometimes a VMInstall is needed, and that cannot be added from inside the image AFAIK. But using the OS version to differ between images might be good enough... Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
participants (2)
-
Adrian Schröter
-
Johannes Kastl