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:
committed by
Daan De Meyer
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
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
issue2730.mount
|
||||
@@ -0,0 +1,8 @@
|
||||
[Mount]
|
||||
What=tmpfs
|
||||
Where=/issue2730
|
||||
Type=tmpfs
|
||||
|
||||
[Install]
|
||||
WantedBy=local-fs.target
|
||||
Alias=issue2730-alias.mount
|
||||
@@ -0,0 +1 @@
|
||||
../issue2730.mount
|
||||
Reference in New Issue
Block a user