[opensuse-autoinstall] using custom repository via AutoYast is not employed
I've asked this in a SLES forum, but no feedback yet: https://forums.suse.com/discussion/14815/using-custom-repository-via-autoyas... is-not-employed And, I've sent email to yast-devel@opensuse.org, but that messsage is hung up, awaiting moderator approval. To repeat those details here: I'm exploring maintaining a private repository, and am trying to employ it via AutoYast, all under SLES 12 SP5. I'm hoping someone can provide some guidance. I realize this is an opensuse list, but I'm hoping autoyast syntax is the same across these distributions. I added this to my autoinst.xml file: <add-on> <add_on_others config:type="list"> <listentry> <media_url><![CDATA[http://10.153.19.116/repo/]]></media_url> <product>Example Product</product> <alias>example</alias> <product_dir>/</product_dir> <priority>30</priority> </listentry> </add_on_others> </add-on> But, when I also declare a package from that repository to install, YaST throws errors: 2020-06-18 17:31:15 <3> install(18178) [Ruby] modules/AutoinstSoftware.rb:1096 Cannot select following packages for installation: 2020-06-18 17:31:15 <3> install(18178) [Ruby] modules/AutoinstSoftware.rb:1099 java-13_0_2-openjdk : The package is not available. (selected by AutoYaST con figuration file) And I see no evidence that YaST attempted to process my repository in the logs. I can confirm the repository has the package: localhost:~ # zypper addrepo http://10.153.19.116/repo/ example Adding repository 'example' ..............................................[done] Repository 'example' successfully added URI : http://10.153.19.116/repo/ Enabled : Yes GPG Check : Yes Autorefresh : No Priority : 99 (default priority) Repository priorities are without effect. All enabled repositories share the same priority. localhost:~ # zypper pa -ir example | grep java-13_0_2-openjdk v | example | java-13_0_2-openjdk | 13.0.2-8.2 | x86_64 -- Brian Reichert <reichert@numachi.com> BSD admin/developer at large -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
El jueves, 25 de junio de 2020 15:29:16 (WEST) Brian Reichert escribió:
I've asked this in a SLES forum, but no feedback yet:
Hi Brian, [..]
I realize this is an opensuse list, but I'm hoping autoyast syntax is the same across these distributions.
Yes, it is basically the same.
I added this to my autoinst.xml file:
<add-on> <add_on_others config:type="list"> <listentry> <media_url><![CDATA[http://10.153.19.116/repo/]]></media_url> <product>Example Product</product> <alias>example</alias> <product_dir>/</product_dir> <priority>30</priority> </listentry> </add_on_others> </add-on>
The problem is that <add_on_others> was introduced in SLE 15 and it is not available in SLE 12, so the repository will not be added. Anyway, you can workaround that problem by using the regular <add_on_products>. Something like this should work: https://github.com/imobachgs/autoyast-workshop-osc18/blob/ f72b05977e752f3c3e453f428e55bc6300df5c52/profiles/exercise.xml#L6-L10 [..] I hope it helps. Regards, Imo -- Imobach González Sosa YaST Team at SUSE LLC https://imobachgs.github.io/
On Thu, Jun 25, 2020 at 03:15:06PM +0000, Imobach Gonzalez Sosa wrote:
The problem is that <add_on_others> was introduced in SLE 15 and it is not available in SLE 12, so the repository will not be added. Anyway, you can workaround that problem by using the regular <add_on_products>. Something like this should work: https://github.com/imobachgs/autoyast-workshop-osc18/blob/ f72b05977e752f3c3e453f428e55bc6300df5c52/profiles/exercise.xml#L6-L10
[..]
I hope it helps.
Thanks; I appreciate the feedback! I'll explore this soonish...
Regards, Imo
-- Imobach Gonz?lez Sosa YaST Team at SUSE LLC https://imobachgs.github.io/
-- Brian Reichert <reichert@numachi.com> BSD admin/developer at large -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On Thu, Jun 25, 2020 at 11:32:58AM -0400, Brian Reichert wrote:
On Thu, Jun 25, 2020 at 03:15:06PM +0000, Imobach Gonzalez Sosa wrote:
The problem is that <add_on_others> was introduced in SLE 15 and it is not available in SLE 12, so the repository will not be added. Anyway, you can workaround that problem by using the regular <add_on_products>. Something like this should work: https://github.com/imobachgs/autoyast-workshop-osc18/blob/ f72b05977e752f3c3e453f428e55bc6300df5c52/profiles/exercise.xml#L6-L10
[..]
I hope it helps.
Thanks; I appreciate the feedback! I'll explore this soonish...
This has worked for me: <add-on> <add_on_products config:type="list"> <listentry> <media_url><![CDATA[http://10.153.19.116/repo/]]></media_url> <product>Example Product</product> <alias>example</alias> <product_dir>/</product_dir> <priority>30</priority> </listentry> </add_on_products> </add-on> Once again, thanks for the feeback.
Regards, Imo
-- Imobach Gonz?lez Sosa YaST Team at SUSE LLC https://imobachgs.github.io/
-- Brian Reichert <reichert@numachi.com> BSD admin/developer at large -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
-- Brian Reichert <reichert@numachi.com> BSD admin/developer at large -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
participants (2)
-
Brian Reichert
-
Imobach Gonzalez Sosa