From: Dag Wieers (dag_at_wieers.com)
Date: Fri Dec 07 2007 - 21:13:28 CET
Date: Fri, 7 Dec 2007 21:13:28 +0100 (CET) From: Dag Wieers <dag@wieers.com> Message-ID: <alpine.LRH.0.99999.0712072107390.29483@horsea.3ti.be> Subject: [suse-sles-e] Problem add yum repository in post-install of SLES10 SP1
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 ? Thanks, -- -- 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:13:58 CET