Mailinglist Archive: yast-devel (10 mails)

< Previous Next >
Re: [yast-devel] Install RPMs in "second stage" via printer_proposal.ycp
  • From: Ladislav Slezak <lslezak@xxxxxxx>
  • Date: Wed, 13 Mar 2013 14:19:35 +0100
  • Message-id: <51407CE7.30205@suse.cz>
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#L319

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#L129

"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@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References