[pve-devel] [PATCH 07/16] write_etc_network_interfaces: updated header comment

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Jun 24 14:33:21 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 7d2da7a..e374170 100644
--- a/src/PVE/INotify.pm
+++ b/src/PVE/INotify.pm
@@ -1202,7 +1202,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