[pve-devel] [PATCH V2 pve-common 2/2] INotify: detect ifupdown2 from executable not path

Alexandre Derumier aderumier at odiso.com
Fri Feb 21 10:28:12 CET 2020


Seem than addons.conf file is not removed on "apt remove ifupdown2",
so /usr/share/ifupdown2 is not removed too.
---
 src/PVE/INotify.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm
index 55ff969..f1faaab 100644
--- a/src/PVE/INotify.pm
+++ b/src/PVE/INotify.pm
@@ -1361,7 +1361,7 @@ sub __interface_to_string {
 
 sub write_etc_network_interfaces {
     my ($filename, $fh, $config) = @_;
-    my $ifupdown2 = -e '/usr/share/ifupdown2';
+    my $ifupdown2 = -e '/usr/share/ifupdown2/ifupdown2';
     my $raw = __write_etc_network_interfaces($config, $ifupdown2);
     PVE::Tools::safe_print($filename, $fh, encode('UTF-8', $raw));
 }
-- 
2.20.1




More information about the pve-devel mailing list