[pmg-devel] [PATCH pmg-api] pmg7to8: skip kernel checks for pmg-mailgateway-container
Stoiko Ivanov
s.ivanov at proxmox.com
Mon Jun 26 22:59:40 CEST 2023
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
quickly tested on a system upgraded from the pmg container template
src/PMG/CLI/pmg7to8.pm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/PMG/CLI/pmg7to8.pm b/src/PMG/CLI/pmg7to8.pm
index 41482e6..ea29056 100644
--- a/src/PMG/CLI/pmg7to8.pm
+++ b/src/PMG/CLI/pmg7to8.pm
@@ -187,6 +187,11 @@ sub check_pmg_packages {
log_fail("$pkg package is too old, please upgrade to >= $min_pmg_ver!");
}
+ if ($pkg eq 'proxmox-mailgateway-container') {
+ log_skip("Ignoring kernel version checks for $pkg meta-package");
+ return;
+ }
+
# FIXME: better differentiate between 6.2 from bullseye or bookworm
my ($krunning, $kinstalled) = (qr/6\.(?:2\.(?:[2-9]\d+|1[6-8]|1\d\d+)|5)[^~]*$/, 'pve-kernel-6.2');
if (!$upgraded) {
--
2.30.2
More information about the pmg-devel
mailing list