From: Frantisek Hrbata on
gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1644#note_8718...
What would happen if user installs only kernel-core RPM (without
kernel-
modules and kernel meta package)? Would the trigger still run?
I would expect that. The docs[1] says: If multiple items are given (comma
separated), the trigger is run when *any* of those conditions becomes true
(the , can be read as "or").
How many times would kernel-install run if you install kernel,
kernel-core
and kernel-modules (in single transaction)? Here I assume "1",
because kernel
meta package is installed as last one (it has Requires on core and modules)
Yeah, this might be a problem if you install kernel-core and kernel-modules.
That would probably fire the trigger twice.
How many times would kernel-install run if you install kernel, but
already
had 3 older kernels installed? Would trigger run for each kernel?
I guess this would have to be hardened by specifying the kernel version in the
trigger. The docs says it supports Requires syntax.
Anyways this was just an idea if the trigger can be used for situation like
this. I've never played with it, so this for sure would have to be properly
verified and tested. But based on your second question it probably will not
work without other tweaks.
Feel free to resolve this, I don't have permissions to do so :smile:
[1]
http://ftp.rpm.org/api/4.4.2.2/triggers.html