* Install a more specific match when --network-veth is used
When doing more complicated network stuff in a QEMU VM, the network
file we install starts matching stuff it shouldn't match. Let's narrow
the match down by driver so we don't accidentally match against stuff
we don't want to match against.
Co-authored-by: Jörg Behrmann <behrmann@physik.fu-berlin.de>
# mkosi Changelog
+## v13
+
+- The networkd config file installed by mkosi when the --network-veth option is
+ used (/etc/systemd/network/80-mkosi-network-veth.network in the image) now only matches against network interfaces using the virtio_net driver.
+ Please make sure you weren't relying on this file to configure any network
+ interfaces other than the tun/tap virtio-net interface created by mkosi when
+ booting the image in QEMU with the --network-veth option. If you were relying
+ on this config file to configure other interfaces, you'll have to re-create it
+ with the correct match and a lower initial number in the filename to make sure networkd will keep configuring your
+ interface, e.g. via the `mkosi.skeleton` or `mkosi.extra` trees or a `mkosi.postinst` script.
+
## v12
- Fix handling of baselayout in Gentoo installations.
[Match]
Virtualization=!container
Type=ether
+ Driver=virtio_net
[Network]
DHCP=yes