]> git.ipfire.org Git - thirdparty/systemd.git/commit
vmspawn: fix --smbios
authorLuca Boccassi <luca.boccassi@gmail.com>
Sun, 17 Aug 2025 23:34:22 +0000 (00:34 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 18 Aug 2025 06:37:43 +0000 (15:37 +0900)
commitd9c23bcfc498bc6b8dcc50b7fc64db3082dcc8d7
treec00cb879be5c4c4547c41da2bf63f61eb0486ce7
parentd92990c783e884c56eb8a69cf128a2b332c7357f
vmspawn: fix --smbios

The file used to pass credentials gets created and then immediately deleted:

$ systemd-vmspawn -i image.raw -s "io.systemd.credential.binary:tty.serial.hvc0.agetty.autologin=cm9vdA=="
░ Spawning VM opensuse-2025081621.1 on /tmp/image.raw.
░ Press Ctrl-] three times within 1s to kill VM.
Not overwriting existing state file.
Listening on /run/user/1000/systemd/vmspawn.1c00857c6a3dc2c7/tpm.sock as 3.
qemu-system-x86_64: -smbios type=11,path=/var/tmp/vmspawn-smbios-Hizb4A/.#smbios11e5a842e77d7b4b68: Could not open '/var/tmp/vmspawn-smbios-Hizb4A/.#smbios11e5a842e77d7b4b68': No such file or directory

Follow-up for a79e94aa58a1b112d95ae27e4931bf5a8817ef05
src/vmspawn/vmspawn.c