[yast-devel] Install RPMs in "second stage" via printer_proposal.ycp
Hello, printer_proposal.ycp from yast2-printer is run at the end of the installation during so called "second stage" to do automated print queue setup. I am thinking about to also install matching printer driver RPMs as needed for locally connected printers (i.e. USB printers) via this printer_proposal.ycp run. My questions are: - Is it possible to install RPMs during "second stage"? In other words: Are the right package repositories available in "second stage" so that a YCP call like Package::Install(package_name) will work correctly? - Is is allowed to do this? - If it is possible and allowed, how can I trigger that a package gets installed without any user interaction? No info popup, no user confirmation popup, no license confirmation popup - only silent operation with a return value that indicates whether or not the requested package was actually installed. For background information, see bnc#808315 in partiocular https://bugzilla.novell.com/show_bug.cgi?id=808315#c3 Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
Dne 12.3.2013 16:49, Johannes Meixner napsal(a):
- Is it possible to install RPMs during "second stage"?
Yes, some YaST modules already do this, e.g. sound configuration.
In other words: Are the right package repositories available in "second stage" so that a YCP call like Package::Install(package_name) will work correctly?
Yes, the original installation repository is available. The Pool and Updates repos are available _after_ registering (in SLE), in openSUSE updates should be available always IIRC. See the sound module, for example: https://github.com/yast/yast-sound/blob/master/sound/src/sound_write.ycp#L91
- Is is allowed to do this?
Yes, it is possible, some modules already do this.
- If it is possible and allowed, how can I trigger that a package gets installed without any user interaction?
E.g. the sound module silently installs some additional tools and support for some sound cards. (Well, it's not completely silent, the progress is displayed.) You just need to be aware of "Automatic Configuration" in the 2nd stage or AutoYaST installation mode. See e.g. https://github.com/yast/yast-sound/blob/master/sound/src/sound_write.ycp#L31...
No info popup, no user confirmation popup, no license confirmation popup - only silent operation with a return value that indicates whether or not the requested package was actually installed.
"No info popup, no user confirmation popup", is OK in Automatic Configuration https://github.com/yast/yast-sound/blob/master/sound/src/sound_write.ycp#L12... "no license confirmation popup" could be acceptable only in AutoYaST installation (the license has been already confirmed). But rather ask for details legal people, I'm not expert in this area. In AutoYaST you can set the software selection separately so the question is if this functionality is actually needed.
For background information, see bnc#808315 in partiocular https://bugzilla.novell.com/show_bug.cgi?id=808315#c3
This is very similar to the sound module, it has a mapping "driver"->[package list], see https://github.com/yast/yast-sound/blob/master/data/alsa_packages.ycp HTH Ladislav -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
Hello Ladislav, many thanks for your valuable information! Only for clarification: On Mar 13 14:19 Ladislav Slezak wrote (excerpt):
Dne 12.3.2013 16:49, Johannes Meixner napsal(a):
... how can I trigger that a package gets installed without any user interaction? ... No info popup, no user confirmation popup, no license confirmation popup - only silent operation with a return value that indicates whether or not the requested package was actually installed. ... "no license confirmation popup" could be acceptable only in AutoYaST installation (the license has been already confirmed). But rather ask for details legal people, I'm not expert in this area.
I did not mean to install packages that require a license confirmation silently (i.e. without getting the license confirmation from the user). I meant when a package should be installed without any user interaction but the package requires a license confirmation, the package must not be installed and the return value would indicate that the requested package was not installed. Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
participants (2)
-
Johannes Meixner
-
Ladislav Slezak