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

From: Marcus Meissner (meissner_at_suse.de)
Date: Fri Dec 07 2007 - 21:20:50 CET


Date: Fri, 7 Dec 2007 21:20:50 +0100
From: Marcus Meissner <meissner@suse.de>
Message-ID: <20071207202050.GC4783@suse.de>
Subject: Re: [suse-sles-e] Problem add yum repository in post-install of SLES10 SP1

On Fri, Dec 07, 2007 at 09:13:28PM +0100, Dag Wieers wrote:
> Hi,
>
> 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.

Ciao, Marcus

---------------------------------------------------------------------
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:21:09 CET