[PATCH] Add an exception to DUD version checking for 6.0 and 6.1 kernels (#699745)

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

 



---
 loader/driverdisk.c |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/loader/driverdisk.c b/loader/driverdisk.c
index 69d7daf..97aecd1 100644
--- a/loader/driverdisk.c
+++ b/loader/driverdisk.c
@@ -77,7 +77,18 @@ int dlabelProvides(const char* dep, const char* version, uint32_t sense, void *u
     if (version == NULL)
         return -1;
 
-    return strcmp(dep, "kernel-modules") || matchVersions(kernelver, sense, version);
+    /* not a modules package */
+    if (strcmp(dep, "kernel-modules")) return 1;
+
+    /*
+     * exception for 6.0 and 6.1 DUDs, we changed the logic a bit and need to maintain compatibility. 
+     */
+    if (!strncmp(version, "2.6.32-131", 10) || !strncmp(version, "2.6.32-71", 9)) return 0;
+
+    /*
+     * Use this package only if the version match string is true for this kernel version
+     */
+    return !matchVersions(kernelver, sense, version);
 }
 
 /*
-- 
1.7.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux