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:
Richard Maw 2024-04-17 16:10:09 +01:00 committed by Daan De Meyer
parent b95bb3b3bb
commit 7590e1d037
4 changed files with 10 additions and 15 deletions

View file

@ -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
}

View file

@ -0,0 +1 @@
issue2730.mount

View file

@ -0,0 +1,8 @@
[Mount]
What=tmpfs
Where=/issue2730
Type=tmpfs
[Install]
WantedBy=local-fs.target
Alias=issue2730-alias.mount

View file

@ -0,0 +1 @@
../issue2730.mount