a new config that tweaks the config and removes initscript-related annotations
Thierry Parmentelat [Mon, 2 Mar 2015 11:49:10 +0000 (12:49 +0100)]
system/config_no_initscript.py [new file with mode: 0644]

diff --git a/system/config_no_initscript.py b/system/config_no_initscript.py
new file mode 100644 (file)
index 0000000..206d698
--- /dev/null
@@ -0,0 +1,14 @@
+# Thierry Parmentelat <thierry.parmentelat@inria.fr>
+# Copyright (C) 2012 INRIA 
+#
+# allow one hour for the node to install
+
+def config (plc_specs, options):
+    def remove_initscripts (plc_spec):
+        slice_specs = plc_spec['slices']
+        for slice_spec in slice_specs:
+            for key in ['initscriptcode', 'initscriptname', 'initscriptstamp']:
+                if key in slice_spec:
+                    del slice_spec[key]
+        return plc_spec
+    return [remove_initscripts (plc_spec) for plc_spec in plc_specs ]