Closed kontura closed 9 months ago
Just background of the workflow - dnf receive a transaction and then we check whether transaction adds installonly packages over limit. If it is the case we add additional jobs that erase installonly package over limit and add install steps for installonly package from previously resolved transaction and installed packages that we want to keep on the system.
You also get the desired result if you don't include kernel-core-4.18.16-300.fc29.x86_64@available
in the install job. But adding the lock like you suggested would also work (I would not use lock, but also add an erase job, but that's a matter of taste)
Thank you for the confirmation and suggestion.
I also like the erase
more. :+1:
In dnf we a
installonly_limit
which is the maximum number of installonly packages allowed to be installed concurrently. Defaults to 3. (We use this logic to ensure it.)Recently we had a problem where a user tried to install
kernel-core
only via a provide (kernel-core-uname-r
) resulting in a job like:I think solver chose this solution over
because it is smaller but we are trying to achieve the latter.
One possible way how to fix this seems to be by adding
job lock pkg kernel-core-4.18.16-300.fc29.x86_64@available
. Can you please advise us if this is a good solution? Or is there some better way how to do this?