[pve-devel] [PATCH v2 04/11] write_etc_network_interfaces: updated header comment

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Jun 25 11:54:27 CEST 2015


The header now mentions that the file is auto-generated and
should not be tempered with directly.
It now recommends to add custom network configurations via
source/source-directory lines.
---
 src/PVE/INotify.pm | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm
index e773cf4..b3f45ae 100644
--- a/src/PVE/INotify.pm
+++ b/src/PVE/INotify.pm
@@ -1197,7 +1197,19 @@ sub write_etc_network_interfaces {
 	}
     }
 
-    my $raw = "# network interface settings\n";
+    my $raw = <<'NETWORKDOC';
+# network interface settings; autogenerated
+# Please do NOT modify this file directly, unless you know what
+# you're doing.
+#
+# If you want to manage part of the network configuration manually,
+# please utilize the 'source' or 'source-directory' directives to do
+# so.
+# PVE will preserve these directives, but will NOT its network
+# configuration from sourced files, so do not attempt to move any of
+# the PVE managed interfaces into external files!
+
+NETWORKDOC
 
     my $printed = {};
 
-- 
2.1.4





More information about the pve-devel mailing list