diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-05-08 11:08:42 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-05-08 22:00:23 -0400 |
commit | 62a992bed989cd65a873373af7ab0f2e7de61114 (patch) | |
tree | 24f1d7985e09f209896ac93f54d248779824ab3b /test/TEST-08-ISSUE-2730/test.sh | |
parent | 61b480b68bdfff8c88800149a035c281b7bbbc71 (diff) |
TEST-08: make sure / is remounted rw
In this test /etc/fstab is replaced by -.mount unit. This causes
systemd-remount-fs.service to not remount / rw, which in turn causes various
failures becuase /var is not writable. In particular
systemd-tmpfiles-setup.service reports many failures. This is something
to possibly fix on its own (see https://github.com/systemd/systemd/issues/791);
in the meanwhile let's fix this test so that it doesn't fail, since the
point of the test is to check aliases on mount units, and not a ro root.
Diffstat (limited to 'test/TEST-08-ISSUE-2730/test.sh')
-rwxr-xr-x | test/TEST-08-ISSUE-2730/test.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/TEST-08-ISSUE-2730/test.sh b/test/TEST-08-ISSUE-2730/test.sh index 92e70b828b..409140157a 100755 --- a/test/TEST-08-ISSUE-2730/test.sh +++ b/test/TEST-08-ISSUE-2730/test.sh @@ -67,6 +67,20 @@ WantedBy=local-fs.target Alias=root.mount EOF + cat >$initdir/etc/systemd/system/systemd-remount-fs.service <<EOF +[Unit] +DefaultDependencies=no +Conflicts=shutdown.target +After=systemd-fsck-root.service +Before=local-fs-pre.target local-fs.target shutdown.target +Wants=local-fs-pre.target + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/bin/systemctl reload / +EOF + setup_testsuite ) || return 1 |