units: register vmspawn VMs started via systemd-vmspawn@.service by default with machined

This commit is contained in:
Lennart Poettering 2024-05-27 13:32:02 +02:00
parent ecc4287dee
commit ec67cc9785

View File

@ -16,7 +16,7 @@ After=network.target modprobe@tun.service
RequiresMountsFor=/var/lib/machines/%i
[Service]
ExecStart=systemd-vmspawn --quiet --network-tap --machine=%i
ExecStart=systemd-vmspawn --quiet --register=yes --keep-unit --network-tap --machine=%i
KillMode=mixed
Type=notify
Slice=machine.slice