Re: [suse-sles-e] Problem add yum repository in post-install of SLES10 SP1

From: Dag Wieers (dag_at_wieers.com)
Date: Fri Dec 07 2007 - 21:30:14 CET


Date: Fri, 7 Dec 2007 21:30:14 +0100 (CET)
From: Dag Wieers <dag@wieers.com>
Message-ID: <alpine.LRH.0.99999.0712072123200.29483@horsea.3ti.be>
Subject: Re: [suse-sles-e] Problem add yum repository in post-install of SLES10 SP1

On Fri, 7 Dec 2007, Marcus Meissner wrote:

> On Fri, Dec 07, 2007 at 09:13:28PM +0100, Dag Wieers wrote:
>
> > I am doing a post-install script for the autoyast installation of a SLES10
> > SP1 system. I have the following lines in the postinstall to register a
> > few Yum repositories:
> >
> > ----
> > ### Enable standard mrepo repositories
> > #rug ping
> > service novell-zmd restart
> > rug set-prefs security-level checksum
> > rug sa -t yum http://10.68.12.200/mrepo/sles10-$ARCH/RPMS.os/ sles10-$ARCH-os
> > rug sa -t yum http://10.68.12.200/mrepo/sles10-$ARCH/RPMS.emc/ sles10-$ARCH-emc
> > rug sa -t yum http://10.68.12.200/mrepo/sles10-$ARCH/RPMS.updates/ sles10-$ARCH-updates
> > rug sa -t yum http://10.68.12.200/mrepo/sles10-$ARCH/RPMS.sdk/ sles10-$ARCH-sdk
> > rug sa -t yum http://10.68.12.200/mrepo/sles10-$ARCH/RPMS.sdk-updates/ sles10-$ARCH-sdk-updates
> > rug sa -t yum http://10.68.12.200/mrepo/sled10-$ARCH/RPMS.os/ sled10-$ARCH-os
> > rug sa -t yum http://10.68.12.200/mrepo/sled10-$ARCH/RPMS.updates/ sled10-$ARCH-updates
> > rug sub sles10-$ARCH-os
> > rug sub sles10-$ARCH-emc
> > #rug sub sles10-$ARCH-updates
> > rug sub sles10-$ARCH-sdk
> > #rug sub sles10-$ARCH-sdk-updates
> > rug sub sled10-$ARCH-os
> > #rug sub sled10-$ARCH-updates
> > -----
> >
> > However, when the installation is done, YaST fails to see the repositories
> > in the graphical "Installation Sources" or "Software Management" module.
> >
> > Also, I am not able to install packages during the postinstall using 'yast
> > -i' because the autoyast apparently is locking the package database. How
> > is one supposed to install additional package from other repositories if
> > yast cannot be run in the postinstall ?
> >
> > We used to work with 'rpm -U --quiet' statements using an exact URL, but
> > this gets tiresome very quickly if you have the modify the exact URLs
> > everytime you update a package. A depsolver would be really useful here.
> >
> > I am tempted to use apt, but this is not a unique situation, every
> > sysadmin needs to go through this, right ?
>
> rug sa -t yum will add them only to ZMD/rug, not to YAST.
>
> Use type "zypp" (rug sa -t zypp) to add them to both.

Sigh, and how is one supposed to know that ? :)

I tried without -t (which is proclaimed to be autodetect) but that one
fails miserably. We debugged this for more than 2 hours, it appeared fine
in rug ca and rug sl... But hey, this works ! :)

In YaST apparently I still get a 'Signature Check Failed' warning that I
would like to disable. 'rug set-prefs security-level checksum' does not
seem to cut it though :-/ How do I either disable that message in advance,
or create a signature that it accepts ?

Also, how can I install packages in the post-install using 'yast -i' ?

-- 
--   dag wieers,  dag@wieers.com,  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]
---------------------------------------------------------------------
To unsubscribe, e-mail: suse-sles-e-unsubscribe@suse.com
For additional commands, e-mail: suse-sles-e-help@suse.com


This archive was generated by hypermail 2.1.7 : Fri Dec 07 2007 - 10:30:39 CET