summaryrefslogtreecommitdiffstats
path: root/testModule/hooks/pre-mount.sh
diff options
context:
space:
mode:
authortorben2015-04-13 20:09:38 +0200
committertorben2015-04-13 20:09:38 +0200
commit91cc532a55fed3c6c27a2e14759e901ed3d72579 (patch)
tree18cc276173bc543b38e84143674429a306c26f0e /testModule/hooks/pre-mount.sh
parentAdding endless test service. Fix some naming conventions. (diff)
downloadsystemd-init-91cc532a55fed3c6c27a2e14759e901ed3d72579.tar.gz
systemd-init-91cc532a55fed3c6c27a2e14759e901ed3d72579.tar.xz
systemd-init-91cc532a55fed3c6c27a2e14759e901ed3d72579.zip
Code refactoring.
Diffstat (limited to 'testModule/hooks/pre-mount.sh')
-rw-r--r--testModule/hooks/pre-mount.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/testModule/hooks/pre-mount.sh b/testModule/hooks/pre-mount.sh
new file mode 100644
index 00000000..301381e6
--- /dev/null
+++ b/testModule/hooks/pre-mount.sh
@@ -0,0 +1,14 @@
+# TODO
+warn '............START.............'
+
+insmod /usr/lib/modules/3.10.0-229.1.2.el7.x86_64/extra/dnbd3.ko
+
+#dnbd3-client --daemon &
+#sleep 3
+local dnbd3_device_node="$(dnbd3-client -h 132.230.4.1 -i stage4/torben/test -r 1 -d /dev/dnbd0)"
+dnbd3_device_node='/dev/dnbd0'
+qemu-img create -f qcow2 -o backing_file="$dnbd3_device_node",backing_fmt=qcow2 /test.qcow2
+insmod /usr/lib/modules/3.10.0-229.1.2.el7.x86_64/extra/nbd.ko
+wrap qemu-nbd -c /dev/nbd0 /test.qcow2
+
+#wrap /usr/bin/bash -c 'while true; do wget http://10.126.2.184:8080; sleep 10; done' &