test: document when writable /usr overlays may be needed

This commit is contained in:
Richard Maw
2024-04-24 11:01:45 +02:00
committed by Daan De Meyer
parent 0bc1e9592e
commit 796cf1b483
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -8,6 +8,7 @@ set -o pipefail
# shellcheck source=test/units/util.sh
. "$(dirname "$0")"/util.sh
# Needed to write units to /usr/lib/systemd/system to test /etc and /run overrides.
maybe_mount_usr_overlay
trap 'maybe_umount_usr_overlay' EXIT
+1
View File
@@ -18,6 +18,7 @@ at_exit() {
return 0
}
# Needed for /usr/lib/systemd/system/$UNIT_NAME to test overrides in /etc and /run
maybe_mount_usr_overlay
trap at_exit EXIT
+1
View File
@@ -6,6 +6,7 @@ set -o pipefail
# shellcheck source=test/units/util.sh
. "$(dirname "$0")"/util.sh
# Needed to create mount.mytmpfs helper
maybe_mount_usr_overlay
trap 'maybe_umount_usr_overlay' EXIT
+1
View File
@@ -9,6 +9,7 @@ set -o pipefail
# shellcheck source=test/units/util.sh
. "$(dirname "$0")"/util.sh
# Needed to generate test locales in /usr/lib
maybe_mount_usr_overlay
trap 'maybe_umount_usr_overlay' EXIT