[pbs-devel] [PATCH proxmox-backup v2 1/2] pbs2to3: fix #5600: expect any kernel 6.x version above 6.2.16

Daniel Kral d.kral at proxmox.com
Mon Aug 26 14:05:12 CEST 2024


Fixes a minor bug where `pbs2to3` shows an incorrect warning about an
incompatible kernel version, where newer kernel versions than 6.5.* were
marked as unexpected.

Signed-off-by: Daniel Kral <d.kral at proxmox.com>
---
 src/bin/pbs2to3.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/pbs2to3.rs b/src/bin/pbs2to3.rs
index 1f895abd..194a077e 100644
--- a/src/bin/pbs2to3.rs
+++ b/src/bin/pbs2to3.rs
@@ -130,7 +130,7 @@ impl Checker {
         self.output.log_info("Check running kernel version..")?;
         let (krunning, kinstalled) = if self.upgraded {
             (
-                Regex::new(r"^6\.(?:2\.(?:[2-9]\d+|1[6-8]|1\d\d+)|5)[^~]*$")?,
+                Regex::new(r"^6\.(?:2\.(?:[2-9]\d+|1[6-8]|1\d\d+)|([5-9]|\d{2,}))[^~]*$")?,
                 "proxmox-kernel-6.2",
             )
         } else {
-- 
2.39.2





More information about the pbs-devel mailing list