summaryrefslogtreecommitdiffstats
path: root/testModule/scripts/setup-qcow2
diff options
context:
space:
mode:
Diffstat (limited to 'testModule/scripts/setup-qcow2')
-rwxr-xr-xtestModule/scripts/setup-qcow23
1 files changed, 2 insertions, 1 deletions
diff --git a/testModule/scripts/setup-qcow2 b/testModule/scripts/setup-qcow2
index cc74457b..70babc17 100755
--- a/testModule/scripts/setup-qcow2
+++ b/testModule/scripts/setup-qcow2
@@ -114,7 +114,8 @@ export_qcow() {
# helper to mount the qcow2-container per nbd
connect_qcow() {
# try to mount the locally exported qcow2-container using nbd-client
- if nbd-client --systemd-mark --persist 127.0.0.1 2000 /dev/nbd0; then
+ if /usr/bin/systemd-preserve-process-marker \
+ nbd-client --persist 127.0.0.1 2000 /dev/nbd0; then
# it worked, lets set the symlink to /dev/root as dracut needs it
# later on to mount that device to the future root (/sysroot)
ln -sf /dev/nbd0 /dev/root