[opensuse-autoinstall] Running "rug" from inside AutoYaST post install script?
Hi, We are trying to run "rug" during a SLES10 AutoYaST installation to install some additional packages, i.e. we have a ZenWorks Linux Management 7 server in which we have a package catalog with additional rpms and then in the AutoYaST post-install script we do the below. You will note how we install some rpms with the "rpm" command and that works fine. And some rpms we install using "rug" command and that fails with error messge: "Transaction failed: A Transaction is already in progress." Can anyone tell me what we have to hit to make rug work during the post-install script? Any help would be greatly appreciated! Here is an excerpt from our post-install script: <post-scripts config:type="list" > <script> <filename>post.sh</filename> <interpreter>shell</interpreter> <source> <![CDATA[ #!/bin/sh echo "Enabling network interface (eth0)..." ifup eth0 # This one works: echo "Installing bes-config package..." rpm -Uvh http://bes.csi.cam.ac.uk/rpms/bes/bes-config-1.1-1.noarch.rpm # This one fails with error "Transaction failed: A Transaction is already in progress": echo "Setting up local update repository..." mkdir -p /etc/zmd/trusted-certs cp /etc/ssl/certs/thawteCp.pem /etc/zmd/trusted-certs/ThawteCp.cer /etc/init.d/novell-zmd start rug sd 1 rug sa https://sle-updates.csx.cam.ac.uk rug sub -a rug in -y ucam-mason-bootstrap /etc/init.d/novell-zmd stop echo "Shutting down network interface (eth0)..." ifdown eth0 ]]> </source> </script> </post-scripts> Best regards, Anton -- Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @) Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK Linux NTFS maintainer, http://www.linux-ntfs.org/ -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Monday 12 March 2007 11:52, Anton Altaparmakov wrote:
And some rpms we install using "rug" command and that fails with error messge:
"Transaction failed: A Transaction is already in progress."
Here is an excerpt from our post-install script:
<post-scripts config:type="list" >
better use init-scripts for that task. Yast still has a lock in the post-scripts -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug now playing Combichrist - Enjoy the abuse -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
Anton Altaparmakov
-
Uwe Gansert