Skip to content

Commit

Permalink
systemd: check both OEM IDs for flatcar and coreos
Browse files Browse the repository at this point in the history
For backwards compatibilities, we need to check both OEM IDs in the
kernel command line, `flatcar.oem.id` and `coreos.oem.id`.
  • Loading branch information
Dongsu Park committed Feb 12, 2020
1 parent d718ba3 commit 0f78c00
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions systemd/network/yy-azure-sriov-coreos.network
@@ -0,0 +1,15 @@
# Ignore SR-IOV interface on Azure, since it'll be transparently bonded
# to the synthetic interface

[Match]
KernelCommandLine=coreos.oem.id=azure
# With NetworkManager, Azure uses a udev rule matching DRIVERS=="hv_pci".
# This won't work with networkd because it only checks the driver of the
# device itself, not its parents. All we can do instead is blacklist the
# VF driver currently used in Azure. If other drivers come into use, the
# symptom will be a VF interface in the output of "networkctl" which never
# finishes configuring.
Driver=mlx4_en

[Link]
Unmanaged=yes

0 comments on commit 0f78c00

Please sign in to comment.