]> git.ipfire.org Git - thirdparty/systemd.git/commit
vmspawn: initialize block device "serials" from backing file name
authorLennart Poettering <lennart@poettering.net>
Tue, 16 Sep 2025 20:25:06 +0000 (22:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 17 Sep 2025 07:53:18 +0000 (09:53 +0200)
commit9b5ba882bd9ae4e0ed270289eada03c2040fefe2
tree81419beeb5fb58691b6b3e13316f7c30d92cb93f
parent0125be8733023fedb4d97c8e79b19717708e7ade
vmspawn: initialize block device "serials" from backing file name

If we pass multiple block devices into a VM it's really useful to pass
recognizable serial numbers on them, so that we know which one is which.
qemu allows setting them, hence initialize them automatically from the
filename of the backing file, as a convenience feature.

Inside of a VM this means /dev/disk/by-id/… symlinks will be generated
with useful identifiers.
src/vmspawn/vmspawn.c