summaryrefslogtreecommitdiff
path: root/sysvinit
diff options
context:
space:
mode:
Diffstat (limited to 'sysvinit')
-rw-r--r--sysvinit/gentoo/cloud-config13
-rw-r--r--sysvinit/gentoo/cloud-final11
-rw-r--r--sysvinit/gentoo/cloud-init12
-rw-r--r--sysvinit/gentoo/cloud-init-local13
4 files changed, 49 insertions, 0 deletions
diff --git a/sysvinit/gentoo/cloud-config b/sysvinit/gentoo/cloud-config
new file mode 100644
index 00000000..b0fa786d
--- /dev/null
+++ b/sysvinit/gentoo/cloud-config
@@ -0,0 +1,13 @@
+#!/sbin/runscript
+
+depend() {
+ after cloud-init-local
+ after cloud-init
+ before cloud-final
+ provide cloud-config
+}
+
+start() {
+ cloud-init modules --mode config
+ eend 0
+}
diff --git a/sysvinit/gentoo/cloud-final b/sysvinit/gentoo/cloud-final
new file mode 100644
index 00000000..b457a354
--- /dev/null
+++ b/sysvinit/gentoo/cloud-final
@@ -0,0 +1,11 @@
+#!/sbin/runscript
+
+depend() {
+ after cloud-config
+ provide cloud-final
+}
+
+start() {
+ cloud-init modules --mode final
+ eend 0
+}
diff --git a/sysvinit/gentoo/cloud-init b/sysvinit/gentoo/cloud-init
new file mode 100644
index 00000000..9ab64ad8
--- /dev/null
+++ b/sysvinit/gentoo/cloud-init
@@ -0,0 +1,12 @@
+#!/sbin/runscript
+# add depends for network, dns, fs etc
+depend() {
+ after cloud-init-local
+ before cloud-config
+ provide cloud-init
+}
+
+start() {
+ cloud-init init
+ eend 0
+}
diff --git a/sysvinit/gentoo/cloud-init-local b/sysvinit/gentoo/cloud-init-local
new file mode 100644
index 00000000..9d47263e
--- /dev/null
+++ b/sysvinit/gentoo/cloud-init-local
@@ -0,0 +1,13 @@
+#!/sbin/runscript
+
+depend() {
+ after localmount
+ after netmount
+ before cloud-init
+ provide cloud-init-local
+}
+
+start() {
+ cloud-init init --local
+ eend 0
+}