On 4/7/21 12:13 PM, Carlos E. R. wrote:
On 07/04/2021 12.09, josef Reidinger wrote:
On Wed, 7 Apr 2021 09:40:19 +0200 Michal Suchánek <msuchanek@suse.de> wrote:
On Wed, Apr 07, 2021 at 03:00:24PM +0930, Simon Lees wrote:
[...]
This really should be done at a package level or possibly at pattern level (but probably not in this case). Because if someone does "zypper in virtualbox" post install ideally it should behave in the same manor so I suspect the best solution is for the virtualbox package to recommend these so that all users get the same consistent experience.
This is about installation in guest. So the guest should detect the hardware and install the appropriate driver.
I think only the installer has any logic to do that, once installed it is up to the user to install the drivers for any new hardware.
In fact it is not true. rpm or libzypp ( not sure which one ) has capability to do supplements based on hardware.
See e.g. nouveau spec Supplements part https://build.opensuse.org/package/view_file/X11:XOrg/xf86-video-nouveau/xf8...
Having it in installer is possible, but it take more time and effort to keep it maintained. So having it in rpm spec file is preferred way as it works even for upgrades if you have allowed recommended packages.
And how do you handle installing the correct guest packages for vmware, virtualbox, or any other, depending on the actual hardware detected?
Because this was working in the past, somehow.
It has always worked by the same mechanism described by Josef - modalias dependencies at package level. For example, the virtualbox-guest-tools package includes this line. Supplements: modalias(pci:v000080EEd0000BEEFsv*sd*bc*sc*i*) Cheers. -- Ancor González Sosa YaST Team at SUSE Software Solutions