[opensuse-autoinstall] Installing packages from repository in postinstall
Hi, Marcus Meissner forwarded me to this mailinglist regarding a problem I have with installing packages in the postinstall on SLES10. We created a few extra repositories (using mrepo) and add these with a rug-command during the postinstall. The next thing we would like to do is install some of the packages from these repositories in the postinstall. Sadly, running 'yast -i' does not work, because of an error message that yast is already runing or the package database is being lock by another yast: http://lists.suse.com/archive/suse-sles-e/2007-Dec/0032.html What I am doing is explained more in the original message of this thread. So what is the best way to install packages in the postinstall from a repository without adding the packages directly to the installation media. PS We are now using 'rpm -U --quiet' on exact URLs, but that is problematic if we update one of these packages as we have to manually edit the postinstall phase. I much more prefer that we rebuild the repository metadata and let 'yast' do the installation of the latest version in the postinstall. Thanks for your help ! -- -- dag wieers, dag@wieers.com, http://dag.wieers.com/ -- [Any errors in spelling, tact or fact are transmission errors] -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Montag, 10. Dezember 2007, Dag Wieers wrote:
We created a few extra repositories (using mrepo) and add these with a rug-command during the postinstall. The next thing we would like to do is install some of the packages from these repositories in the postinstall.
Sadly, running 'yast -i' does not work, because of an error message that yast is already runing or the package database is being lock by another yast:
either run "yast -i" in an init-scripts section or set "network_needed" to true in your rug-command-script and add the packages you want to install in the post-packages section
So what is the best way to install packages in the postinstall from a repository without adding the packages directly to the installation media.
adding an <add-on> section to the profile and use the <packages> or <post-packages> section. -- 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 Diary Of Dreams - The Plague -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Mon, 10 Dec 2007, Uwe Gansert wrote:
On Montag, 10. Dezember 2007, Dag Wieers wrote:
We created a few extra repositories (using mrepo) and add these with a rug-command during the postinstall. The next thing we would like to do is install some of the packages from these repositories in the postinstall.
Sadly, running 'yast -i' does not work, because of an error message that yast is already runing or the package database is being lock by another yast:
either run "yast -i" in an init-scripts section or set "network_needed" to true in your rug-command-script and add the packages you want to install in the post-packages section
Is there a standard way of doing this with init-scripts ? It looks very ugly to do this in an init-script that is only used one time while we could do it as part of the post-install. I do not understand the "network_needed in rug-command-script" or what the post-packages section is. Do you have a best-practices document that explains this in depth for NLD9 and SLES10 ?
So what is the best way to install packages in the postinstall from a repository without adding the packages directly to the installation media.
adding an <add-on> section to the profile and use the <packages> or <post-packages> section.
That is not possible for 2 reasons: - the create_package_descr command does not work on SLES10. Our autoinstall server is a SLES10 server and we have to deploy both NLD9 and SLES10 systems (with additional packages). - the <addons> and <addon> tags do not allow to specify another repository that is build with the genIS_PLAINcache command (which we are using for NLD9. The aim is to create a repository (on SLES10) that we can subscribe to and use during the post-install section as well as in YaST when the system is being used. -- -- dag wieers, dag@wieers.com, http://dag.wieers.com/ -- [Any errors in spelling, tact or fact are transmission errors] -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Dienstag, 11. Dezember 2007, Dag Wieers wrote:
either run "yast -i" in an init-scripts section or set "network_needed" to true in your rug-command-script and add the packages you want to install in the post-packages section
Is there a standard way of doing this with init-scripts ?
documented here: http://www.suse.de/~ug/autoyast_doc/createprofile.scripts.html#init.scripts
I do not understand the "network_needed in rug-command-script" or what the post-packages section is. Do you have a best-practices document that explains this in depth for NLD9 and SLES10 ?
network_needed is documented here: http://www.suse.de/~ug/autoyast_doc/createprofile.scripts.html#post-insall.s... <post-packages> is documented here: http://www.suse.de/~ug/autoyast_doc/CreateProfile.Software.html#id2578671 -- 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 -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Monday 10 December 2007 12:19, Dag Wieers wrote:
Sadly, running 'yast -i' does not work, because of an error message that yast is already runing or the package database is being lock by another yast:
http://lists.suse.com/archive/suse-sles-e/2007-Dec/0032.html
In my scripts, I run the package installs as part of an init-script, not the post-install script. -- Simon Crute IS&T. Bracknell. UK. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (3)
-
Dag Wieers
-
Simon Crute
-
Uwe Gansert