diff options
| author | Jonathan Bauer | 2015-04-14 17:58:50 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2015-04-14 17:58:50 +0200 |
| commit | e4c036d247389cfaeb3da8675ce53f53bef90afe (patch) | |
| tree | ae1c87aeb940147cb258c4b540ad920880781ac0 /testModule/hooks/pre-pivot.sh | |
| parent | static qemu-nbd (diff) | |
| parent | Some tries to fix kernel panic. (diff) | |
| download | systemd-init-e4c036d247389cfaeb3da8675ce53f53bef90afe.tar.gz systemd-init-e4c036d247389cfaeb3da8675ce53f53bef90afe.tar.xz systemd-init-e4c036d247389cfaeb3da8675ce53f53bef90afe.zip | |
Merge branch 'master' of git.openslx.org:openslx-ng/systemd-init
Diffstat (limited to 'testModule/hooks/pre-pivot.sh')
| -rw-r--r-- | testModule/hooks/pre-pivot.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testModule/hooks/pre-pivot.sh b/testModule/hooks/pre-pivot.sh new file mode 100644 index 00000000..8b01779a --- /dev/null +++ b/testModule/hooks/pre-pivot.sh @@ -0,0 +1,12 @@ +# TODO +warn '............MOUNT.............' +# TODO +dnbd3_device_node='/dev/dnbd0' +mount -o remount,rw /sysroot +rm /sysroot/test.qcow2 +qemu-img create -f qcow2 -o \ + backing_file="$dnbd3_device_node",backing_fmt=qcow2 /sysroot/test.qcow2 +insmod /usr/lib/modules/3.10.0-229.1.2.el7.x86_64/extra/nbd.ko +systemd_preserve_process_marker qemu-nbd --connect /dev/nbd0 /sysroot/test.qcow2 --socket /sysroot/var/lock/qemu-nbd-TEST +mount /dev/nbd0 /sysroot/TEST +# strace -ff -o /sysroot/log.txt -p PID |
