mirror of
https://github.com/systemd/systemd
synced 2024-07-21 18:24:38 +00:00
TEST-07-PID1: Move mount units to test dir
To load the units it is sufficient to add them to the units directory and it's a step towards not needing any customisations for this test.
This commit is contained in:
parent
b95bb3b3bb
commit
7590e1d037
|
@ -21,21 +21,6 @@ test_append_files() {
|
|||
printf "[Socket]\nTriggerLimitIntervalSec=10\n" >"$workspace/etc/systemd/system/issue2467.socket.d/TriggerLimitInterval.conf"
|
||||
fi
|
||||
|
||||
# Issue: https://github.com/systemd/systemd/issues/2730
|
||||
mkdir -p "$workspace/etc/systemd/system/"
|
||||
cat >"$workspace/etc/systemd/system/issue2730.mount" <<EOF
|
||||
[Mount]
|
||||
What=tmpfs
|
||||
Where=/issue2730
|
||||
Type=tmpfs
|
||||
|
||||
[Install]
|
||||
WantedBy=local-fs.target
|
||||
Alias=issue2730-alias.mount
|
||||
EOF
|
||||
"${SYSTEMCTL:?}" enable --root="$workspace" issue2730.mount
|
||||
ln -svrf "$workspace/etc/systemd/system/issue2730.mount" "$workspace/etc/systemd/system/issue2730-alias.mount"
|
||||
|
||||
image_install logger socat
|
||||
}
|
||||
|
||||
|
|
1
test/testsuite-07.units/issue2730-alias.mount
Symbolic link
1
test/testsuite-07.units/issue2730-alias.mount
Symbolic link
|
@ -0,0 +1 @@
|
|||
issue2730.mount
|
8
test/testsuite-07.units/issue2730.mount
Normal file
8
test/testsuite-07.units/issue2730.mount
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Mount]
|
||||
What=tmpfs
|
||||
Where=/issue2730
|
||||
Type=tmpfs
|
||||
|
||||
[Install]
|
||||
WantedBy=local-fs.target
|
||||
Alias=issue2730-alias.mount
|
1
test/testsuite-07.units/local-fs.target.wants/issue2730.mount
Symbolic link
1
test/testsuite-07.units/local-fs.target.wants/issue2730.mount
Symbolic link
|
@ -0,0 +1 @@
|
|||
../issue2730.mount
|
Loading…
Reference in a new issue