From b57eb1f4ff56e1b6164c9486af376fdb570e63f3 Mon Sep 17 00:00:00 2001 From: Jonathan Dieter Date: Tue, 8 Jul 2025 15:38:29 +0100 Subject: [PATCH] Add documentation making it clear where this code originated Signed-off-by: Jonathan Dieter --- README | 12 ++++++++++++ README.md | 12 ++++++++++++ dnf-plugin-protected-kmods.spec | 4 ++-- src/protected_kmods.py | 7 +++++++ 4 files changed, 33 insertions(+), 2 deletions(-) diff --git a/README b/README index 8a9fa57..9cdd012 100644 --- a/README +++ b/README @@ -95,6 +95,18 @@ Example output: Found matching kmod-idpf-irdma-0.0.129.20_0.0.647-3.el9.x86_64 for kernel-core-5.14.0-427.35.1.el9_4.cloud.1.0.x86_64 +Building the plain-text documentation + +1. Install pandoc + +2. Run the following command in the root directory of the repository: + + pandoc README.md -t plain -o README + Contributing See CONTRIBUTING.md + +History + +Forked from https://github.com/NVIDIA/yum-packaging-nvidia-plugin diff --git a/README.md b/README.md index 2615091..01abea5 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,18 @@ Excluded kernel packages during update (5.14.0-503.14.1.el9_5): Found matching kmod-idpf-irdma-0.0.129.20_0.0.647-3.el9.x86_64 for kernel-core-5.14.0-427.35.1.el9_4.cloud.1.0.x86_64 ``` +## Building the plain-text documentation + +1. Install `pandoc` +2. Run the following command in the root directory of the repository: + ```bash + pandoc README.md -t plain -o README + ``` + ## Contributing See [CONTRIBUTING.md](CONTRIBUTING.md) + +## History + +Forked from https://github.com/NVIDIA/yum-packaging-nvidia-plugin diff --git a/dnf-plugin-protected-kmods.spec b/dnf-plugin-protected-kmods.spec index 7820816..b49ec36 100644 --- a/dnf-plugin-protected-kmods.spec +++ b/dnf-plugin-protected-kmods.spec @@ -1,5 +1,5 @@ Name: dnf-plugin-protected-kmods -Version: 0.9.4 +Version: 0.9.5 Release: 1%{?dist} Summary: DNF plugin needed to protect kmods License: Apache-2.0 @@ -45,5 +45,5 @@ install -D -m 644 src/protected_kmods.py %{buildroot}%{python3_sitelib}/dnf-plug %changelog -* Mon Jun 16 2025 Jonathan Dieter - 0.9.4-1 +* Mon Jul 08 2025 Jonathan Dieter - 0.9.5-1 - Initial release for EPEL diff --git a/src/protected_kmods.py b/src/protected_kmods.py index a712311..4464d05 100644 --- a/src/protected_kmods.py +++ b/src/protected_kmods.py @@ -1,3 +1,10 @@ +# dnf-plugin-protected-kmods +# +# DNF plugin to ensure that kernel updates do not occur if the update doesn't have +# a matching kmod available in the repositories. +# +# Forked from https://github.com/NVIDIA/yum-packaging-nvidia-plugin + import os from functools import cmp_to_key from configparser import ConfigParser, NoOptionError, NoSectionError