summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdev-tools/exampleDracutModule/module-setup.sh2
-rw-r--r--dev-tools/exampleDracutModule/source/usr/lib/systemd/system/example.service (renamed from dev-tools/exampleDracutModule/example.service)0
-rw-r--r--dev-tools/exampleDracutModule/source/usr/lib/systemd/system/multi-user.target.wants/example.service10
3 files changed, 11 insertions, 1 deletions
diff --git a/dev-tools/exampleDracutModule/module-setup.sh b/dev-tools/exampleDracutModule/module-setup.sh
index af9bda6c..8a7d0e07 100755
--- a/dev-tools/exampleDracutModule/module-setup.sh
+++ b/dev-tools/exampleDracutModule/module-setup.sh
@@ -41,5 +41,5 @@ install() {
`install`
'
inst_hook pre-pivot 00 "$moddir/apply-package.sh"
- inst_multiple tar
+ inst_multiple tar wget
}
diff --git a/dev-tools/exampleDracutModule/example.service b/dev-tools/exampleDracutModule/source/usr/lib/systemd/system/example.service
index 83310c1d..83310c1d 100644
--- a/dev-tools/exampleDracutModule/example.service
+++ b/dev-tools/exampleDracutModule/source/usr/lib/systemd/system/example.service
diff --git a/dev-tools/exampleDracutModule/source/usr/lib/systemd/system/multi-user.target.wants/example.service b/dev-tools/exampleDracutModule/source/usr/lib/systemd/system/multi-user.target.wants/example.service
new file mode 100644
index 00000000..83310c1d
--- /dev/null
+++ b/dev-tools/exampleDracutModule/source/usr/lib/systemd/system/multi-user.target.wants/example.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Simple example service
+After=dracut-pre-mount.service network.target
+DefaultDependencies=no
+
+[Service]
+Type=oneshot
+RemainAfterExit=true
+KillMode=none
+ExecStart=/usr/bin/bash -c '/usr/bin/echo test >/tmp/test-output.txt'