From: Stoiko Ivanov <s.ivanov@proxmox.com>
To: pve-devel@lists.proxmox.com, pmg-devel@lists.proxmox.com
Subject: [pmg-devel] [PATCH installer] pmg: ensure clamav-freshclam is enabled
Date: Wed, 17 Sep 2025 18:22:11 +0200 [thread overview]
Message-ID: <20250917162211.709800-1-s.ivanov@proxmox.com> (raw)
This follows pmg-api commit:
cb8e149c ("d/postinst: ensure that clamav-freshclam is enabled")
the postinst invocation in pmg-api is not effective with the message:
```
/usr/sbin/policy-rc.d returned 101, not running enable clamav-freshclam
```
so enable it explicitly by creating the symlink.
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
---
one alternative that might work as well would be to use
`systemctl` proper in pmg-api's postinst, instead of deb-systemd-invoke -
however I'm not sure about the effects this might have outside of our
installer (deb-systemd-invoke was created for running in maintscripts)
Proxmox/Install.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Proxmox/Install.pm b/Proxmox/Install.pm
index fb23f7f..2ebd376 100644
--- a/Proxmox/Install.pm
+++ b/Proxmox/Install.pm
@@ -1351,6 +1351,13 @@ _EOD
"$targetdir/etc/systemd/system/multi-user.target.wants/clamav-clamonacc.service"
or $!{ENOENT}
or warn "failed to disable clamav-clamonacc.service - $!\n";
+ # clamav-freshclam is not enabled automatically anymore in recent versions - so ensure
+ # it will start - see https://salsa.debian.org/clamav-team/clamav/-/merge_requests/7
+ syscmd(
+ "ln -sf /lib/systemd/system/clamav-freshclam.service $targetdir/etc/systemd/system/multi-user.target.wants/clamav-freshclam.service"
+ ) == 0
+ || warn "failed to enable clamav-freshclam.service - $!\n";
+
}
if ($iso_env->{product} eq 'pve') {
--
2.39.5
_______________________________________________
pmg-devel mailing list
pmg-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel
WARNING: multiple messages have this Message-ID
From: Stoiko Ivanov <s.ivanov@proxmox.com>
To: pve-devel@lists.proxmox.com, pmg-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH installer] pmg: ensure clamav-freshclam is enabled
Date: Wed, 17 Sep 2025 18:22:11 +0200 [thread overview]
Message-ID: <20250917162211.709800-1-s.ivanov@proxmox.com> (raw)
This follows pmg-api commit:
cb8e149c ("d/postinst: ensure that clamav-freshclam is enabled")
the postinst invocation in pmg-api is not effective with the message:
```
/usr/sbin/policy-rc.d returned 101, not running enable clamav-freshclam
```
so enable it explicitly by creating the symlink.
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
---
one alternative that might work as well would be to use
`systemctl` proper in pmg-api's postinst, instead of deb-systemd-invoke -
however I'm not sure about the effects this might have outside of our
installer (deb-systemd-invoke was created for running in maintscripts)
Proxmox/Install.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Proxmox/Install.pm b/Proxmox/Install.pm
index fb23f7f..2ebd376 100644
--- a/Proxmox/Install.pm
+++ b/Proxmox/Install.pm
@@ -1351,6 +1351,13 @@ _EOD
"$targetdir/etc/systemd/system/multi-user.target.wants/clamav-clamonacc.service"
or $!{ENOENT}
or warn "failed to disable clamav-clamonacc.service - $!\n";
+ # clamav-freshclam is not enabled automatically anymore in recent versions - so ensure
+ # it will start - see https://salsa.debian.org/clamav-team/clamav/-/merge_requests/7
+ syscmd(
+ "ln -sf /lib/systemd/system/clamav-freshclam.service $targetdir/etc/systemd/system/multi-user.target.wants/clamav-freshclam.service"
+ ) == 0
+ || warn "failed to enable clamav-freshclam.service - $!\n";
+
}
if ($iso_env->{product} eq 'pve') {
--
2.39.5
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next reply other threads:[~2025-09-17 16:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-17 16:22 Stoiko Ivanov [this message]
2025-09-17 16:22 ` [pve-devel] " Stoiko Ivanov
2025-09-18 13:32 ` [pve-devel] applied: " Thomas Lamprecht
2025-09-18 13:32 ` [pmg-devel] applied: [pve-devel] " Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250917162211.709800-1-s.ivanov@proxmox.com \
--to=s.ivanov@proxmox.com \
--cc=pmg-devel@lists.proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.