mirror of
https://github.com/systemd/systemd
synced 2024-07-22 18:55:10 +00:00
test: verify that the getty generator with creds works
This commit is contained in:
parent
fd2de366e1
commit
53888c3393
|
@ -16,6 +16,7 @@ QEMU_CREDS=(
|
|||
"-smbios type=11,value=io.systemd.credential.binary:sysusers.extra=dSBjcmVkdGVzdHVzZXIK"
|
||||
"-smbios type=11,value=io.systemd.credential.binary:tmpfiles.extra=ZiAvdG1wL3NvdXJjZWRmcm9tY3JlZGVudGlhbCAtIC0gLSAtIHRtcGZpbGVzc2VjcmV0Cg=="
|
||||
"-smbios type=11,value=io.systemd.credential.binary:fstab.extra=aW5qZWN0ZWQgL2luamVjdGVkIHRtcGZzIFgtbW91bnQubWtkaXIgMCAwCg=="
|
||||
"-smbios type=11,value=io.systemd.credential:getty.ttys.container=idontexist"
|
||||
)
|
||||
QEMU_OPTIONS="${QEMU_OPTIONS:-} ${QEMU_CREDS[*]}"
|
||||
|
||||
|
|
|
@ -308,6 +308,9 @@ if ! systemd-detect-virt -q -c ; then
|
|||
# Check that the fstab credential logic worked
|
||||
test -d /injected
|
||||
grep -q /injected /proc/self/mountinfo
|
||||
|
||||
# Make sure the getty generator processed the credentials properly
|
||||
systemctl -P Wants show getty.target | grep -q container-getty@idontexist.service
|
||||
fi
|
||||
|
||||
systemd-analyze log-level info
|
||||
|
|
Loading…
Reference in a new issue