[pmg-devel] [PATCH proxmox-mailgateway] create new meta package for virtual environments sharing the hosts kernel
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Mar 13 13:35:02 CET 2019
If PMG gets installed in a container environment, e.g., in PVE CTs,
the installation does not requires its own kernel, as the host kernel
is used anyway. So add a new separate meta package which can be used
to install, or to switch, to such a setup.
A user can save well a third of the additional space required on top
of a quite minimal Debian installation, i.e., proxmox-mailgateway:
> 0 upgraded, 183 newly installed, 0 to remove and 0 not upgraded.
> Need to get 153 MB of archives.
> After this operation, 638 MB of additional disk space will be used.
vs. with new proxmox-mailgateway-virtualized:
> 0 upgraded, 169 newly installed, 0 to remove and 0 not upgraded.
> Need to get 59.9 MB of archives.
> After this operation, 206 MB of additional disk space will be used.
This quite big difference does not comes only from the kernel, but
also it's dependencies like grub, initramfs-tools, pve-firmware, ...
On new CT installations you can just setup the PMG by installing:
> apt install proxmox-mailgateway-virtualized
and be done, if you need to switch to a system with kernel you can do
so by (re)installing proxmox-mailgateway .
To make a switch on an existing container system you'd do the following:
> apt install proxmox-mailgateway-virtualized
> apt purge pve-kernel-*
> apt autoremove --purge
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
debian/control | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/debian/control b/debian/control
index 5a0d487..94a33da 100644
--- a/debian/control
+++ b/debian/control
@@ -15,3 +15,15 @@ Description: Proxmox Mail Gateway
including efficient Spam and virus filters. This is a meta package
which will install everything needed. This package also depends on
the latest available Proxmox kernel.
+
+Package: proxmox-mailgateway-virtualized
+Architecture: all
+Depends: libc6, pmg-api
+Replaces: proxmox-mailgateway
+Breaks: proxmox-mailgateway
+Provides: proxmox-mailgateway
+Description: Proxmox Mail Gateway
+ The Proxmox Mail Gateway is an easy to use Open Source SMTP proxy,
+ including efficient Spam and virus filters. This is a meta package
+ which will install everything needed in a virtualized environment
+ where no kernel is necessary.
--
2.20.1
More information about the pmg-devel
mailing list