diff options
| author | torben | 2015-05-04 13:57:16 +0200 |
|---|---|---|
| committer | torben | 2015-05-04 13:57:16 +0200 |
| commit | 0ddd93e6daec1c2eadb025bbc7ab90b9e865516c (patch) | |
| tree | 58d84520e5a7f802f1fc0abdca7933f47c4d5b4d /testModule/scripts/setup-nbdroot | |
| parent | Pepare merge. (diff) | |
| parent | working version - STILL TESTING (diff) | |
| download | systemd-init-0ddd93e6daec1c2eadb025bbc7ab90b9e865516c.tar.gz systemd-init-0ddd93e6daec1c2eadb025bbc7ab90b9e865516c.tar.xz systemd-init-0ddd93e6daec1c2eadb025bbc7ab90b9e865516c.zip | |
Merge branch 'master' of git.openslx.org:openslx-ng/systemd-init
Diffstat (limited to 'testModule/scripts/setup-nbdroot')
| -rwxr-xr-x | testModule/scripts/setup-nbdroot | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testModule/scripts/setup-nbdroot b/testModule/scripts/setup-nbdroot new file mode 100755 index 00000000..38f48dd4 --- /dev/null +++ b/testModule/scripts/setup-nbdroot @@ -0,0 +1,12 @@ +#!/bin/bash + +# exit 1 until qemu-nbd is running +[ -f /tmp/qemu-nbd.pid ] || exit 1 + +# +if nbd-client --systemd-mark --persist 127.0.0.1 2000 /dev/nbd0; then + ln -sf /dev/nbd0 /dev/root + exit 0 +else + exit 1 +fi |
