Skip to content

Commit 0ac4537

Browse files
committed
overlay.d: create new 25-azure-udev-rules overlay
We previously had the 68-azure-sriov-nm-unmanaged.rules but we figured out we also want those rules in the initramfs. This commit makes a new overlay.d entry and groups together a new dracut module along with the udev rules in that overlay.d directory. Fixes coreos/fedora-coreos-tracker#1383
1 parent 932e671 commit 0ac4537

File tree

5 files changed

+33
-0
lines changed

5 files changed

+33
-0
lines changed

manifests/fedora-coreos-base.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ ostree-layers:
2020
- overlay/08nouveau
2121
- overlay/09misc
2222
- overlay/20platform-chrony
23+
- overlay/25-azure-udev-rules
2324

2425
# Be minimal
2526
recommends: false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Config file for overriding permission bits on overlay files/dirs
2+
# Format: =<file mode in decimal> <absolute path to a file or directory>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/bash
2+
# Install 68-azure-sriov-nm-unmanaged.rules into the initramfs
3+
4+
# called by dracut
5+
check() {
6+
return 0
7+
}
8+
9+
# called by dracut
10+
depends() {
11+
return 0
12+
}
13+
14+
# called by dracut
15+
install() {
16+
inst_rules 68-azure-sriov-nm-unmanaged.rules
17+
}

overlay.d/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,16 @@ Add static chrony configuration for NTP servers provided on platforms
5353
such as `azure`, `aws`, `gcp`. The chrony config for these NTP servers
5454
should override other chrony configuration (e.g. DHCP-provided)
5555
configuration.
56+
57+
25-azure-udev-rules
58+
-------------------
59+
60+
Add udev rules for SRIOV networking on Azure. The udev rules are also
61+
needed in the initramfs [1] and are delivered here via a dracut
62+
module. This may be able to be removed once an upstream PR [2]
63+
merges, though we need to make sure the RPM [3] includes the dracut
64+
bits to include the rules in the initramfs too.
65+
66+
[1] https://github.com/coreos/fedora-coreos-tracker/issues/1383
67+
[2] https://github.com/Azure/WALinuxAgent/pull/1622
68+
[3] https://src.fedoraproject.org/rpms/WALinuxAgent/pull-request/4

0 commit comments

Comments
 (0)