import-creds: add support for binary credentials specified on the kernel cmdline

This commit is contained in:
Lennart Poettering
2023-07-04 23:19:48 +02:00
parent 49850c1ee3
commit de70ecb328
7 changed files with 37 additions and 11 deletions
+1
View File
@@ -176,6 +176,7 @@ if systemd-detect-virt -q -c ; then
elif [ -d /sys/firmware/qemu_fw_cfg/by_name ]; then
# Verify that passing creds through kernel cmdline works
[ "$(systemd-creds --system cat kernelcmdlinecred)" = "uff" ]
[ "$(systemd-creds --system cat waldi)" = "woooofffwufffwuff" ]
# And that it also works via SMBIOS
[ "$(systemd-creds --system cat smbioscredential)" = "magicdata" ]