summaryrefslogtreecommitdiffstats
path: root/test/units/testsuite-54.sh
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-06-29 21:52:57 +0200
committerLennart Poettering <lennart@poettering.net>2023-07-04 23:09:39 +0200
commit51235f2fe63fa5d45ac75b193b942cf3419ca6dd (patch)
treeb2c9e910dd4f52d008b67e5de224d2b92bc486cb /test/units/testsuite-54.sh
parentfstab-generator: add more parameter name comments (diff)
downloadsystemd-51235f2fe63fa5d45ac75b193b942cf3419ca6dd.tar.xz
systemd-51235f2fe63fa5d45ac75b193b942cf3419ca6dd.zip
test: add simple fstab credential test
Diffstat (limited to '')
-rwxr-xr-xtest/units/testsuite-54.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/units/testsuite-54.sh b/test/units/testsuite-54.sh
index ca7e11fc46..bcc7313d6f 100755
--- a/test/units/testsuite-54.sh
+++ b/test/units/testsuite-54.sh
@@ -304,6 +304,10 @@ systemd-run -p DynamicUser=yes -p 'LoadCredential=os:/etc/os-release' \
if ! systemd-detect-virt -q -c ; then
# Validate that the credential we inserted via the initrd logic arrived
test "$(systemd-creds cat --system myinitrdcred)" = "guatemala"
+
+ # Check that the fstab credential logic worked
+ test -d /injected
+ grep -q /injected /proc/self/mountinfo
fi
systemd-analyze log-level info