[pve-devel] [PATCH installer] fix postfix installation with no active network
Fabian Grünbichler
f.gruenbichler at proxmox.com
Thu Jul 27 10:31:16 CEST 2017
by ensuring at least lo is up inside the chroot environment
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
as reported e.g. on https://forum.proxmox.com/threads/install-error.35932/
proxinstall | 3 +++
1 file changed, 3 insertions(+)
diff --git a/proxinstall b/proxinstall
index 21d2005..afb7a01 100755
--- a/proxinstall
+++ b/proxinstall
@@ -1449,6 +1449,9 @@ _EOD
display_html ("extract4-virus.htm");
+ # needed for postfix postinst in case no other NIC is active
+ syscmd("chroot $targetdir ifup lo");
+
my $cmd = "chroot $targetdir dpkg $dpkg_opts --force-confold --configure -a";
$count = 0;
run_command ($cmd, sub {
--
2.11.0
More information about the pve-devel
mailing list