summaryrefslogtreecommitdiffstats
path: root/testModule
diff options
context:
space:
mode:
authortorben2015-04-14 20:34:12 +0200
committertorben2015-04-14 20:34:12 +0200
commit3ca098cad065df4a7c309c88f4ae27d1ac034243 (patch)
treecf3f98fde38c6e79601e48014028db53d8aecba4 /testModule
parentMany other tries. (diff)
downloadsystemd-init-3ca098cad065df4a7c309c88f4ae27d1ac034243.tar.gz
systemd-init-3ca098cad065df4a7c309c88f4ae27d1ac034243.tar.xz
systemd-init-3ca098cad065df4a7c309c88f4ae27d1ac034243.zip
Save new tries.
Diffstat (limited to 'testModule')
-rw-r--r--testModule/hooks/pre-pivot.sh11
1 files changed, 4 insertions, 7 deletions
diff --git a/testModule/hooks/pre-pivot.sh b/testModule/hooks/pre-pivot.sh
index 7fb6cd9d..0e301b7d 100644
--- a/testModule/hooks/pre-pivot.sh
+++ b/testModule/hooks/pre-pivot.sh
@@ -1,13 +1,10 @@
# TODO
warn '............MOUNT.............'
-# TODO
-mount -o remount,rw /sysroot
-rm /sysroot/test.qcow2
dnbd3_device_node='/dev/dnbd0'
-qemu-img create -f qcow2 -o \
- backing_file="$dnbd3_device_node",backing_fmt=qcow2 /sysroot/test.qcow2
+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
-systemd_preserve_process_marker /usr/bin/qemu-nbd --connect /dev/nbd0 \
- /sysroot/test.qcow2 --socket /sysroot/qemu-nbd-TEST #--aio=native --nocache
+systemd_preserve_process_marker /usr/bin/qemu-nbd --connect /dev/nbd0 /test.qcow2 --socket /qemu-nbd-TEST --persistent --nocache
+#--aio=native
+# --verbose &
#mount /dev/nbd0 /sysroot/TEST
# strace -ff -o /sysroot/log.txt -p PID