Need help with writing a yum plugin
Ankur Sinha <[email protected]>
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Message-ID | <[email protected]> |
Hello, I'm trying to write a yum plug-in: wait-for-kmod For quite a few users, the kmods from RPMFusion are a must. (Take broadcom wireless for example). Now, the kmods generally lag the kernel updates by a few hours: people who do update their systems in this interval are left without wireless/display etc. on reboot. We see this issue regularly in #fedora, each time a kernel update is pushed. The plug-in will make yum skip updating the kernel if it sees that the corresponding kmods are not yet available for update. I think this needs to be added in the postresolve slot, but I'm not adept enough at the yum API yet. I have looked at the API: I spent most of Saturday doing it. I think tsInfo is the way to go: - Get the currently running kernel - Get a list of installed kmods - In postresolve hook - check if the transaction set has kernel marked for update - if yes, check if all installed kmods have updates too - if all kmods aren't being updated, remove kernel from transaction set. Could someone please confirm if this is the way to go? I'd be grateful if any implementation specifics could also be given. (I was referring to the fedorakmod plug-in in the yum-utils, but it seems to be grossly outdated API wise) -- Thanks, Regards, Ankur: "FranciscoD" http://fedoraproject.org/wiki/User:Ankursinha http://dodoincfedora.wordpress.com/ _______________________________________________ Yum mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/yum
signature.asc
(application/pgp-signature, 490 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAABAgAGBQJPb2KUAAoJEKgwcD8HZ+sIwsUH/2TnoIMWJ3JvYjxjK52vUWJ9 ulIK0r8KRVY7RvWFoP3l8Gu4Z2pQQPWrAOc6rERd3aSajS4g/pAKZyD+2Jpo/+b0 op0jspmB1uTp/Zhe2P49CAK4CdHFHfaY4ixjnI2ntwHh+K53UG+tRyyykPQlLL96 ZcFdVJjw3JSnVLi5ftw+ftNvvrbtp1u4PgUGygblZHs05ZAoqbiQIx+CHcLpkrQE b2ugK330cUaQj7Rozj3s44ljY8XnXYtwKSmZAPSvFviuyHhMdQ1VajvQNTIXGNQw E7lmSiWGY2bHqfXJFoD00lBXcM7OdiykGC+DbIY2v9GgZsIYsE95iRZEUAldn6E= =h54N -----END PGP SIGNATURE-----