aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2016-12-13 11:45:01 +0000
committerEvgeny Vereshchagin <evvers@ya.ru>2016-12-13 13:03:14 +0000
commitda2d1421143038a648473402f1e6fd17be05fd0c (patch)
treeaea71fc3f66e046706287bcda1dc83133af8ac7c /test
parentmachine-id-setup: `--print --commit` respects the --root option (diff)
downloadsystemd-da2d1421143038a648473402f1e6fd17be05fd0c.tar.gz
systemd-da2d1421143038a648473402f1e6fd17be05fd0c.tar.bz2
systemd-da2d1421143038a648473402f1e6fd17be05fd0c.zip
sd-id128: id128_write overwrites target file
Diffstat (limited to 'test')
-rwxr-xr-xtest/TEST-14-MACHINE-ID/test.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/TEST-14-MACHINE-ID/test.sh b/test/TEST-14-MACHINE-ID/test.sh
index 201d5281d..f7a39dd69 100755
--- a/test/TEST-14-MACHINE-ID/test.sh
+++ b/test/TEST-14-MACHINE-ID/test.sh
@@ -83,7 +83,8 @@ check expected "$r/etc/machine-id"
r="$(pwd)/transient-machine-id"
setup_root "$r"
-touch "$r/etc/machine-id"
+systemd-machine-id-setup --print --root "$r"
+echo abc >>"$r/etc/machine-id"
mount -o remount,ro "$r"
mount -t tmpfs tmpfs "$r/run"
transient_id=$(systemd-machine-id-setup --print --root "$r")