From 6779203629dd52d61523055249c052ff3f74414c Mon Sep 17 00:00:00 2001 From: valtzu Date: Sat, 27 Apr 2024 16:45:25 +0300 Subject: [PATCH] Add static network config since it's impossible to define VLAN ID on kernel commandline --- mkosi.extra/usr/lib/systemd/network/00-dhcp.network | 1 + mkosi.extra/usr/lib/systemd/network/10-static.netdev | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 mkosi.extra/usr/lib/systemd/network/10-static.netdev diff --git a/mkosi.extra/usr/lib/systemd/network/00-dhcp.network b/mkosi.extra/usr/lib/systemd/network/00-dhcp.network index c469ef7..af0a73c 100644 --- a/mkosi.extra/usr/lib/systemd/network/00-dhcp.network +++ b/mkosi.extra/usr/lib/systemd/network/00-dhcp.network @@ -5,3 +5,4 @@ Type=ether KeepConfiguration=dhcp-on-stop DHCP=ipv4 LinkLocalAddressing=no +VLAN=static diff --git a/mkosi.extra/usr/lib/systemd/network/10-static.netdev b/mkosi.extra/usr/lib/systemd/network/10-static.netdev new file mode 100644 index 0000000..64c72ba --- /dev/null +++ b/mkosi.extra/usr/lib/systemd/network/10-static.netdev @@ -0,0 +1,6 @@ +[NetDev] +Name=static +Kind=vlan + +[VLAN] +Id=8