Re: [OS-BUILD PATCH] redhat: spec: trigger dracut when modules are installed separately

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Frantisek Hrbata on gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1644#note_871877217

> 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
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux