Skip to content

Commit

Permalink
overlay.d: create new 25-azure-udev-rules overlay
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dustymabe committed Jan 18, 2023
1 parent c36e672 commit 8470002
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/fedora-coreos-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ostree-layers:
- overlay/08nouveau
- overlay/09misc
- overlay/20platform-chrony
- overlay/25-azure-udev-rules

# Be minimal
recommends: false
Expand Down
2 changes: 2 additions & 0 deletions overlay.d/25-azure-udev-rules/statoverride
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Config file for overriding permission bits on overlay files/dirs
# Format: =<file mode in decimal> <absolute path to a file or directory>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/bash
# Install 68-azure-sriov-nm-unmanaged.rules into the initramfs

# called by dracut
check() {
return 0
}

# called by dracut
depends() {
return 0
}

# called by dracut
install() {
inst_rules 68-azure-sriov-nm-unmanaged.rules
}
13 changes: 13 additions & 0 deletions overlay.d/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,16 @@ Add static chrony configuration for NTP servers provided on platforms
such as `azure`, `aws`, `gcp`. The chrony config for these NTP servers
should override other chrony configuration (e.g. DHCP-provided)
configuration.

25-azure-udev-rules
-------------------

Add udev rules for SRIOV networking on Azure. The udev rules are also
needed in the initramfs [1] and are delivered here via a dracut
module. This may be able to be removed once an upstream PR [2]
merges, though we need to make sure the RPM [3] includes the dracut
bits to include the rules in the initramfs too.

[1] https://github.com/coreos/fedora-coreos-tracker/issues/1383
[2] https://github.com/Azure/WALinuxAgent/pull/1622
[3] https://src.fedoraproject.org/rpms/WALinuxAgent/pull-request/4

0 comments on commit 8470002

Please sign in to comment.